Answer the question
In order to leave comments, you need to log in
How to make linux work in two DNS zones?
Good day! We have Debian 10 network-manager and two domain zones, Internet and private network. In order to be able to access the private network, I set up the generation of resolv.conf in such a way that the Internet DNS server is asked first, then the private one.
//resolv.conf
nameserver internet
nameserver private
Answer the question
In order to leave comments, you need to log in
You need a smarter resolver than the standard one. BIND for example and in it something like this:
zone "." IN {
type forward;
forward only;
forwarders {internet;};
};
zone "private-lan.corp" IN {
type forward;
forward only;
forwarders {private;};
};
In the private DNS server, configure the forwarder of all unknown domains to the DNS server on the Internet and use only the private one for resolving.
Moreover, it should do this by default by root hints.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question