zerotier / zeronsd

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

dig returns two interfaces when querying zeronsd server - any way to restrict to zerotier interface? #225

Closed eggbean closed 1 year ago

eggbean commented 1 year ago

I use a real DNS domain on all my hosts, using multiple split-horizons. On cloud instances in public and private subnets, the real domain is CNAME aliased to the public and private and domains.

This setup has been working fine for me for years, and I would prefer to keep it this way.

However, my zeronsd server, which is running on a cloud instance is giving out two IP addresses when I use dig to query it - one from the zerotier interface and another from the main interface used on its private network, as it also uses the same domain.

I know this is how DNS works, but is there a way to make it only give the address of the zerotier interface?

eggbean commented 1 year ago

Sorry, I missed the following in the README.md:

Linux users are strongly encouraged to use systemd-networkd along with systemd-resolved to get per-interface resolvers that you can isolate to the domain you want to use. If you'd like to try something that can assist with getting you going quickly, check out the zerotier-systemd-manager repository.