initial setup issue involving DNS

hello -

when i first migrated over to kvm, i think may have specified DNS numbers of 8.8.8.8 and 8.8.4.4

now this seems to be causing issues, as the /etc/resolv.conf seems reverting back to just 8.8.8.8 -- and my control panel is telling me i have to have 127.0.0.1 as a DNS service.

currently i am running:

find / -type f -exec grep --files-with-matches 8\\.8\\.8\\.8 {} \; 2> /dev/null > results.txt

to see if i can determine where the 8.8.8.8 might be "hardcoded" - i did find it referenced in /admin/resolvconf but i doubt that is where the issue is.

any suggestions are appreciated.
 
i added the following lines to /etc/sysconfig/network-scripts/ifcfg-eth0 as per this link

PEERDNS="yes" ## this was actually here already, added the two below:
DNS1=8.8.8.8
DNS2=127.0.0.1
that seemed to take care of it.
 
Last edited:
Top