Everything related to domain name resolution works fine in mobile and windows client where I have the option to set the Zerotier IP as my DNS server. But I don’t seem to find any ways to resolve domains when connected via linux machines.
I’m facing the same issues mentioned below :
Was this issue resolved? Are there any work arounds?
For proper local domain name DNS resolution when using zerotier in Linux, I added these firewall rules and set my Pihole Zerotier IP (192.168.195.x) as DNS server for specific interface (eth0 or wlan0).
Add these rules and save iptables.
sudo iptables -A INPUT -i zt0-p udp -m udp --dport 53 -j ACCEPT
sudo iptables -A INPUT -i zt0 -p tcp -m tcp --dport 53 -j ACCEPT
sudo iptables -A INPUT -i zt0 -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
This worked for me in resolving local domain name (service.home.lan). I did not setup any DNS server in zerotier central or download and install zeronsd.