zerotier / zeronsd

A DNS server for ZeroTier users
https://zerotier.com
BSD 3-Clause "New" or "Revised" License
493 stars 56 forks source link

Client nodes can't access DNS #198

Closed anthonyma94 closed 1 year ago

anthonyma94 commented 1 year ago

I have zeronsd installed on a parent server and it can access all nodes within its network via DNS. However, the children nodes cannot access each other with DNS. Am I supposed to install zeronsd on every client?

laduke commented 1 year ago

Am I supposed to install zeronsd on every client?

No

Did you enable allowDNS on your clients?

https://docs.zerotier.com/zeronsd/quickstart#install-zerotier

laduke commented 1 year ago

Closing because probably not a zeronsd issue. Let us know if it is, or if we can improve the docs.

anthonyma94 commented 1 year ago

Yes it is, all of my clients have allowDNS=1 on the network.

laduke commented 1 year ago

Ok. What operating system are the clients? How are you testing DNS? Check the firewall rules on the DNS server.

anthonyma94 commented 1 year ago

They are almost all pis running Raspberry Pi OS (Debian 11), with 1 windows laptop. They have their firewalls disabled. I don't change any network settings except joining the ZeroTier network and setting allowDNS=1. I try to ping using the DNS address, ping testing-pi.iot.local, and iot.local is set in the network as the domain.

laduke commented 1 year ago

Should work on Windows. Linux needs more configuration to know about the DNS server. https://github.com/zerotier/zeronsd#per-interface-dns-resolution

anthonyma94 commented 1 year ago

So I need to install zeronsd-systemd-manager on each Linux node, but not zeronsd?

I can also confirm Windows does not work with zeronsd. I've setup the network as allowDNS=1.

glimberg commented 1 year ago

Correct. ZeroNSD is a DNS server. zerotier-systemd-manager is what configures the DNS settings on Linux systems.