I'm experiencing some DNS issues on a new RHEL 6 virtual machine. Ping is working fine to an IP, but the machine is unable to resolve any names. I've tried adding Google's DNS servers (220.127.116.11 and 18.104.22.168) to the bottom of /etc/resolv.conf but it's not having any affect. Even manually adding items to my /etc/hosts file doesn't seem to work. Does something need to be reset? Anything else I can try?
This is the contents of my /etc/hosts file:
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 22.214.171.124 download.fedoraproject.org 126.96.36.199 google.com
However I still can't nslookup or ping to google.com.
EDIT: Solved. Was a firewall issue blocking the DNS requests.