Customize DNS nameservers with DHCP setting by NetworkManger on CentOS 7
By default, Network Manager always changes the resolv.conf file if the interface is using DHCP. The NetworkManger puts the records from DHCP server on top and the customize DNS servers at bottom. It causes private DNS setting cannot be found. To fix it, just change the PEERDNS=no in /etc/sysconfig/network-scripts/ifcfg-eth0 and restart network
Written on November 10, 2016