On my company's internal network, there is a development server called devserver.mycompany.com
Usually I can connect to this server with out issue, but sometimes (seems random to me) Ubuntu won't be able to resolve the address.
Other Information and Observations
When I run
nmcli dev list iface eth0 in a terminal, I see that there are two configured DNS Servers:
IP4.DNS: 192.168.50.103 IP4.DNS: 220.127.116.11
The second dns server is my ISP's server.
I never have this issue on my Windows partition which is configured to use the same two DNS Servers.
When I am experiencing the issue:
nslookup devserver.mycompany.com 18.104.22.168fails all the time (no surprise, devserver is not a public server)
nslookup devserver.mycompany.com 192.168.50.103works
Here's the actual output of
Ubuntu-14:~$ nslookup devserver.mycompany.com Server: 127.0.1.1 Address: 127.0.1.1#53 ** server can't find devserver.mycompany.com: NXDOMAIN
- From the above output, it looks like Ubuntu is trying to use a local DNS server. Correct? Is it caching a failed lookup on my local machine?
- If it is caching, how can I clear the cache?
- Is Ubuntu using this second DNS server sometimes? Why? Is it load balancing? Is the local one slower?
- How should I fix this? I don't want to remove the second DNS server in case the primary one goes down.
- And finally, why don't I experience this issue in Windows?
Ubuntu Version Information
ubuntu 14.04 LTS with no outstanding updates.
All the networking was setup more or less automatically. Using DHCP