Editing DNS in Ubuntu 12.04 Server

http://askubuntu.com/questions/130452/how-do-i-add-a-dns-server-via-resolv-conf

That link really helped me out.  Essentially you just follow through this example:

Edit the /etc/network/interfaces file. The same configurations that you would have written to resolv.conf can now be in the same file as your network adapter configurations like the example below:

# The loopback network interface
auto lo iface lo inet loopback

# The primary network interface
auto eth0 iface eth0 inet static
address 192.168.1.2
netmask 255.255.255.0 
network 192.168.0.0 
broadcast 192.168.1.255 
gateway 192.168.1.1

dns-nameservers 75.75.75.75, 75.75.76.76
dns-search local
dns-domain local.domain

I found this sample very handy in setting up a 12.04 Server instance. So many posts are about the network manager, but that isn’t available with out installing many other packages, etc.

–Nat

Leave a Reply

Your email address will not be published. Required fields are marked *