There are a few ways to change your DNS Servers and this is specifically created with CentOS but can basically be applied to any Linux distro as they all use the /etc/resolv.conf file. To configure your DNS manually you will need to modify the /etc/resolv.conf file, if you are using DHCP this will reset when you reboot the system so you will need to do one of the below methods.
Option 1: Edit your /etc/resolv.conf (Static IP)
You will replace the DNS in the /etc/resolv.conf file. After replacing the IP your resolve.conf file should look similar to the one below.
[root@hostname]# cat /etc/resolv.conf
search dynamichosting.biz
nameserver 123.123.123.1
nameserver 123.123.123.2 View full article »


