I am specifically looking for some way to automatically add a ZT-network-specific DNS server (e.g.: zeronsd) whenever a host joins a network (and is authorized, of course).
I currently have a net and I start zeronsd with docker run -v /var/lib/zerotier-one:/var/lib/zerotier-one:ro -e ZEROTIER_CENTRAL_TOKEN=<mytoken> --net host --rm zerotier/zeronsd start <netid> -d <domain>.
This works well and I can resolve addresses using something like: host <host>.<domain> <ZT1 IP of server where zerosnd runs> but I have to manually modify /etc/resolv.conf (which will be rewritten by resolvconf) to get a global resolution. Surely this is not the “best practice”.
How am I supposed to handle this?
Is it possible to automate the process or should I act on each end all clients?
Note: servers and some clients are Linux machines, but I also have Windows clients.
Note2: I noticed DNS server appeared on https://my.zerotier.com/network/<netid>, but I still have no name resolution on clients.