Can anybody please guide me on how to install and setup ZeroNSD on a Synology NAS using Docker/Container Manager?
That Synology NAS already has ZeroTier running by following the docs, but I also need devices on the same ZeroTier network as the NAS to resolve a domain name to the IP of the NAS in that network. I believe ZeroNSD is exactly for that, right?
I found that the IP addresses of ZeroTier nodes don’t change. So you can use a global DNS server like aws or digital ocean or whatever. I set my net to use 10.147.18.0/24 as a managed net. On each client click allow managed addresses. Then each node will get an IP in this net that doesn’t change. Set each nodes 10.147.18.x IP as a name in a global DNS. You can use the ZeroTier DNS system but it is way more complicated than using any existing DNS zone you have. If you don’t own an existing one create a random name at godaddy and set some random cheap DNS server like digital ocean.
Also you can just connect to the fixed IP for the NAS. Or you can make /etc/hosts files on each machine with the NAS name (I heard msoft broke that on windows, not sure, for ages ou could put a hosts file in the right directory on windows).
So you can use a global DNS server like aws or digital ocean or whatever.
As of now, the domain has an A record pointing to the local IP address of the NAS (i.e., non-ZeroTier IP) so that other computers in the LAN can connect to it using HTTPS. Some of those computers, though, are often moved outside the LAN and become remote, so in order for those to still be able to connect to the NAS using the same domain name (and the certificate staying valid) they need to believe the same domain points to the NAS’ ZeroTier IP only when they are remote.
I believe I need, therefore, to have a DNS server overriding that domain’s IP to the NAS’ ZeroTier IP that only computers in the ZeroTier network query. That would allow not having to do any configuration whatsoever in the computers connecting to the NAS, irrespective of whether they are in the same LAN or remote and connecting via ZeroTier.
That’s what I understood ZeroNSD is for: to have a DNS Server that assigns custom IP to domains that only devices in the ZeroTier network query.
Also you can just connect to the fixed IP for the NAS.
Connect it where?
Or you can make /etc/hosts files on each machine with the NAS name
That’s impractical when the number of devices is large (let alone impossible on tablets and phones devices), and that notwithstanding, would require configuration of each new device each time one is incorporated that I do not think is practical either.