yarrick / iodine

Official git repo for iodine dns tunnel
https://code.kryo.se/iodine
ISC License
6.25k stars 507 forks source link

Support more than one top domain name to be used with a daemon #58

Closed HouzuoGuo closed 3 years ago

HouzuoGuo commented 3 years ago

Hello.

I'd like to build a small fleet of highly available (hehe) iodined using several domain names, would it be possible to let iodined support more than one top domain names at the same time? Or even better if it will just work with any top domain names regardless of what they are.

Thank you.

yarrick commented 3 years ago

Handling any topdomain will not work, since then we dont know how much of the query name to parse as data.

But it might work allowing some variance while keeping a specified number of parts (like both a.tun.com and b.tun.com) which could be specified as *.tun.com or similar

yarrick commented 3 years ago

I have been thinking about this also. In my current setup I have a tunnel domain with IPv4 only, and one that has both IPv4 and IPv6 addresses defined. But I can only run the server for one of them at a time. (This is just for testing, there should be no reason to run both)

yarrick commented 3 years ago

I think it is working now (from 95fde8b3eec9835d1c7f1ad7abde1d89eaa25b0e)

Only one wildcard is allowed and it has to be the first part of the tunnel domain.

HouzuoGuo commented 3 years ago

I wish more open source developers were as responsive and helpful as you 👍 that's great, thanks!

JuniorJPDJ commented 3 years ago

shouldn't the issue be closed then?

yarrick commented 3 years ago

It turned out to be quite easy to do. It might as well have taken a few years :)