I am using Ubuntu 12.04 LTS and am having trouble getting this desktop to correctly query the correct DNS servers in resolving hostnames. I disabled adding dhcp servers from the network dhcp server under /etc/dhcp/dhclient.conf
Code:
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, host-name,
netbios-name-servers, netbios-scope, interface-mtu,
rfc3442-classless-static-routes, ntp-servers;
I added the correct dns servers and dns search order under /etc/resolvconf/resolv.conf.d/base && tail
base
Code:
nameserver 10.8.0.19 10.0.0.18 10.0.0.19
tail
Code:
search testdomain.local corporate.mydomain.com mydomain.local
changed the host.conf to use bind first
Code:
order bind,hosts
multi on
modified nsswitch.conf to use dns first
Code:
hosts: files dns mdns4_minimal [NOTFOUND=return] mdns4
The domain in particular is the testdomain.local(test lab). The way I have it above, it resolves perfectly fine but there is a long delay in going to the internet. If I switch them around and make it last:
Code:
nameserver 10.0.0.18 10.0.0.19 10.8.0.19
Code:
search corporate.mydomain.com mydomain.local testdomain.local
the internet works lightning quick but I cannot resolve anything from the testdomain.local period but everything else works fine. Help