On a Unix system there is a file called
nsswitch.conf which controls how names of various things get resolved. For example, host names would be governed by this line in that file:
hosts: files mdns4_minimal [NOTFOUND=return] dns
This line says:
- Look to "files" first (such as
- Next try "mdns4_minimal" which means try to resolve the name using Multicast DNS.
- The "NOTFOUND" means that any response of notfound by the preceeding mdns4_minimal process should be treated as authoritative and that the system should not try to continue hunting for an answer.
- Lastly the "dns" parameter means to use a legacy unicast DNS query.
When the name is attempting to be resolved via mdns4_minimal the file
/etc/resolv.conf will be consulted to determine things such as:
- nameservers to query
- default search domain name
- default domain name
# Generated by NetworkManager
So to control your default DNS server outside of the options that @RahulPatil listed in his answer you'll need to change the DNS server in your