Ubuntu 12.04 use resolvconf(a set of scripts and hooks) instead of resolv.conf to manage DNS server. The most notable difference for the user is that any change manually done to /etc/resolv.conf will be lost as it gets overwritten next time something triggers resolvconf.
To add the static dns entries in resolv.conf file,edit /etc/resolvconf/resolv.conf.d/base:
sudo nano /etc/resolvconf/resolv.conf.d/base
Add these lines (the example below is OpenDNS’s public name servers):
nameserver 203.67.222.222 nameserver 203.67.220.220

Run this command to refresh the resolvconf setting:
sudo service resolvconf restart

To view your DNS Servers addresses, use this command:
cat /etc/resolv.conf

More Details Click Here
author by:-rbgeek.wordpress
0 comments:
Post a Comment