I have setup my own Zerotier Controller using ztncui and it works great, but there is one piece of my setup that I cannot seem to get to work and that is having clients use the DNS I configure for the ZeroTier network. The DNS is configured as follows:
{
"domain": "",
"servers": [
"10.10.14.26"
]
}
Where 10.10.14.26
is the ZeroTier IP address of the DNS server (just as Linux server running dnsmasq forwarding to the local router). Whenever I test the responses of the DNS server directly on a ZeroTier client, I do get the correct results (e.g. configuring my DNS to use it directly, or specifying the DNS server when using dig
), however when selecting "Allow DNS Configuration" on the clients, they still refuse to resolve hostnames that do get resolved when asking the DNS server directly.
I also tried using the local IP address of the DNS server rather than the ZeroTier IP, with the same results (IP forwarding is setup on that same Linux server such that clients can access the local IPs too).
What do I need to do to make sure my ZeroTier clients will use the DNS server I have configured?
My backup plan is to just write various scripts for the different platforms I need to support and have them overwrite and restore the global DNS when connecting and disconnecting to my ZeroTier network respectively, but then what is the use of the "Allow DNS Configuration" option.
I know the DNS feature does not work for Linux clients, but I will be the only Linux client, so this isn't much of a problem for me. The rest of the clients will use either Windows or MacOS, for which this feature is reported to work:
ZeroTier managed DNS is currently only supported on Windows, MacOS, Android, and iOS. Linux support is forthcoming but may be limited to common Linux DNS resolver configurations such as those found in Debian and CentOS/RHEL.