kaaass / ZerotierFix

An unofficial Zerotier Android client patched from official client
GNU General Public License v2.0
1.68k stars 193 forks source link

Does ZeroTierFix support DNS configuration override? #29

Closed jerry-yuan closed 1 year ago

jerry-yuan commented 1 year ago

I have configured a DNS configuration override on zerotier.com: Screenshot_20221108-102714.jpg

I have tested in official zerotier app with zerotier version 1.8.9-1, it can redirect DNS queries on my phone to my dns server and my private hostnames (like openwrt.lan) can be resolved. But on ZeroTierFix, I found that these hostname cannot be resolved. Screenshot_20221108-103437.jpg I tried to resolve hostnames in Termux by nslookup with specified DNS server, and the result is that I can get the right IPs. Screenshot_20221108-103416.jpg

I want to know if there is any possible to add this feature?

kaaass commented 1 year ago

That's strange... Zerotier Fix is expected to act the same as the official App in DNS behavior (since we merely extend but do not modify).

Since you managed to do a DNS query through nslookup, maybe this issue is caused by misconfiguration. While joining the network, Zerotier Fix will ask you to choose the DNS type. Please be sure to choose the "Network DNS" (switch to the middle tab).

jerry-yuan commented 1 year ago

That's strange... Zerotier Fix is expected to act the same as the official App in DNS behavior (since we merely extend but do not modify).

Since you managed to do a DNS query through nslookup, maybe this issue is caused by misconfiguration. While joining the network, Zerotier Fix will ask you to choose the DNS type. Please be sure to choose the "Network DNS" (switch to the middle tab).

Thanks for your reply. I found DNS configuration by rejoin the network! It's such a weird design that the official app cannot change the DNS type after joined a network. Thanks a lot again!