I have a situation where I need to use 4 DNS servers + 1 external server(ISP or 8.8.8.8). While the normal DNS client is only considering the first answer from the DNS Servers whatever that is an IP or Not Found, my request will never "arrive" at the second or third server which is able to provide the right answer.
A little background information:
- there are 4 fully isolated zones, with it's own DNS server: Subnet 1.1.1.0/24, Domain: domain1.net, DNS Server ns.domain1.net .... Subnet 4.4.4.0/24, Domain: domain4.net, DNS Server ns.domain4.net
- the right answer is always known by one DNS server only
I have setup some SSH tunnels to each of those zones from one external machine, so I have network connectivity to the DNS servers. But if I put all for dns servers on my /etc/resolv.conf, and look for my-machine.domain4.net I will have problems resolving that request, because the first server asked is ns.domain1.net which will always say Name not found.
I know about dnsmasq, but my example is ultra simplified; while in reality I have 4 zones and hundreds domain+subdomains. Every few days there are additions or deletions to this list of domains, so it would be big pain to manage them by myself in dnsmasq conditional forwarders.
Is there a way to skip "not found" answers and ask the next server?
Windows, Linux, Mac, Docker, Dedicated VM solutions are all good to me.
Thanks