Specifying Different DNS Servers for Different Domains

Is it possible to specify DNS servers for multiple domains. For example, there are 3 domains for which I know the DNS server that resolved the domain name, so I can specify something like

b.com (domain) u1.x1.y1.z1 (DNS server IP address which would resolve b.com) lmno (default DNS server used if above DNS server unavailable) c.com (domain) u2.x2.y2.z2 (DNS server IP address which would resolve c.com) lmno (default DNS server used if above DNS server unavailable) d.com (domain) u3.x3.y3.z3 (DNS server IP address which would resolve d.com) lmno (default DNS server used if above DNS server unavailable) 
+6
source share
2 answers

refer https://github.com/whitekid/dnspost this provides the maximum osx recognizer functionality.

+1
source

Will the next help. I will indicate in /etc/resolv.conf

 search b.com nameserver u1.x1.y1.z1 search c.com nameserver u2.x2.y2.z2 search d.com nameserver u3.x3.y3.z3 

For d.com will NS u3.x3.y3.z3 be used (other NS ie u1.x1.y1.z1 and u2.x2.y2.z2 will not be checked on d.com)? If the input domain does not match any of the above domains, will the local name server be used? Will the local name server also be used if the above name servers are unavailable or NO?

-2
source

Source: https://habr.com/ru/post/926184/


All Articles