I’m making a webserver, and I can’t open ports, so I’m falling back to ZT. ZeroTier works, as expected. I can connect to the other machines on the network, and I can connect to the server via its ZT IP.
Well, I want to give it a name, so I can type that instead of the IP. I went into the server’s
/etc/hosts file (it’s running Arch Linux) and added one line, just to test:
As expected, from the server itself I can type
ping testdomain.com and it gets indeed redirected to itself. Great.
Now, I go into the zerotier web UI, and add
testdomain.com to the search domain, and the ZT address for the server into the server address.
The way I understand it, when a PC on this ZT network tries to ping
testdomain.com, ZT will recognize that, and will redirect to the server for it to resolve. Since the server is configured via
/etc/hosts to redirect to itself, the server should resolve to itself, and it should just work.
But unfortunately, it does not work. I can ping the server directly via the ZT ip from other computers, but not via this domain.
I do have enabled “Allow Default Route”, “Allow Global IP”, “Allow Managed IP” AND “Allow DNS Configuration”. Everything is enabled both in the server and in the clients (I do not know how to enable this in Android clients tho).
Any clues? How can I make this work?