Configure Static DNS on Centos

Modify /etc/sysconfig/network-scripts/ifcfg-eth0

PEERDNS=no
DNS1=8.8.8.8
DNS2=8.8.4.4

Reboot network

sudo ifdown eth0
sudo ifup eth0

Reference:
http://ask.xmodulo.com/configure-static-dns-centos-fedora.html

Written on November 13, 2017