Jun 3, 2010

How To Change DNS On Ubuntu


sudo cp /etc/resolv.conf /etc/resolv.conf.auto

sudo gedit /etc/dhcp3/dhclient.conf

Look for the below line, which will be commented, and match this setting. add your dns addresses

# append the following line to the document
prepend domain-name-servers XXX.XXX.XXX.XXX,XXX.XXX.XXX.XXX;

Once your entry matches this you will want to save the file and restart networking using a command such as the one below.

sudo ifdown eth0 && sudo ifup eth0

No comments:

Post a Comment

Visual Studio Keyboard Shortcuts

Playing with keyboard shortcuts is very interesting and reduce the headache of using the mouse again and again while programming with visu...