Posted on January 15, 2010 | Category: DHCP, Informational, Kubuntu, Linux, Networking, Ubuntu, Xubuntu, bash
Your /etc/resolv.conf file informs the networking end of Ubuntu some important information about where to look when it connects to the network or internet. The default parameters included in the resolv.conf file include:
Below is an example /etc/resolv.conf for a server that operates an internal nameserver using Bind9. the server.local is the nameserver name, the .30 address is the physical internal ip of the nameserver, and the following 2 nameservers of 8.8.8.8 and 8.8.4.4 are Google’s public nameservers.
domain server.local search server.local nameserver 10.1.10.30 nameserver 8.8.8.8 nameserver 8.8.4.4
Once you have manually edited your resolv.conf file and are happy with the changes, use the following command to prevent the file from being overwritten.
sudo chattr +i /etc/resolv.conf
sudo chattr -i /etc/resolv.conf