I have a simple install with Debian as a guest in Virtualbox. I installed the
The resolv.conf file is this:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 184.108.40.206 nameserver 10.3.x.x nameserver 10.219.x.x
I added nameservers through GUI (Applications/System Tools/Network Tools).
The 220.127.116.11 is Google's DNS, and I want to use it to resolve internet addresses. The 10.3.x.x and 10.219.x.x are needed to resolve internal domains like teleportal.company.intra.
When I have these nameservers in resolv.conf(and 18.104.22.168 is the first) I get an error when querying internal an address:
> host teleportal.company.intra Host teleportal.company.intra not found: 3(NXDOMAIN)
However if I explicitly set the second
nameserver's address as a nameserver for nslookup, it works:
» nslookup teleportal.company.intra 10.3.x.x Server: 10.3.x.x Address: 10.3.x.x#53 teleportal.company.intra canonical name = proxy.dummy1.dummy2.private. Name: proxy.dummy1.dummy2.private Address: 172.27.x.x Name: proxy.dummy1.dummy2.private Address: 172.27.x.x
The resolv.conf documentation states that the
nameserver entries will be tried in order, if one of them cannot resolve the query. However if I turn debug on when using
nslookup I see that
nslookup does not even try other entries, only the first.
If I change the order of the
nameservers, then internal addresses will be resolved properly (nslookup still uses only the first entry).
How can I set up 3 nameservers so that utilities will use all of them in order?