Sometimes When a server is provisioned the DHCP doesnt set the Nameservers correctly
These Directions will help you set the namesevrers so that your system can resolve hostnames.
We need to Remove the Syslink on the file and remake the file to prevent DHCP from overwriting our changes.
First delete the resolv.conf file by running the following command:
rm -f /etc/resolv.conf
Next you need to make the file again:
Press A to go into Insert mode.
Insert the following:
Press the Esc key to exit insert mode.
Press Shift and : simultaneously.
Type in wq and press Enter.
Restart the network service by using the following command.
service networking restart
service network restart