Changing DNS server permanently in ubuntu

Tuesday 22 November 2011

Changing DNS server permanently in ubuntu


You might have searched in google a lot to know how to change the DNS
server permanently in ubuntu.OK lets do it.
First open up the terminal by pressing ctrl+alt+T or from menu.
now type the following.
sudo gedit /etc/dhcp/dhclient.conf
or find dhclient.conf in dhcp3 folder.
Now look for the line starting with prepend and change that line
#prepend domain-name-servers 127.0.0.1; to the following below
prepend domain-name-servers 8.8.8.8;
Here i used google DNS, you can use others also,add more than one by
separating it with a comma.





0 comments :

Post a Comment