Wednesday, July 4, 2012

Make your DNS Static/Permanent in Ubuntu 11.04.How to?

Easier way out would be to edit /etc/resolv.conf and add your DNS records like this:

nameserver 8.8.8.8
nameserver 8.8.4.4


Then run sudo chattr +i /etc/resolv.conf to stop NetworkManager from overwriting the file.

To normalize back so that the dhcp can overwrite the name server you need to type

sudo chattr -i /etc/resolv.conf

No comments:

Post a Comment