I am running Linux VPS on CentOS 6.4, and I log into it remotely via putty
I made a change to my /etc/sysconfig/selinux file:
# SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. SELINUX=disabled (default was 'enforcing')
So I rebooted my server:
shutdown -r now
Now it is up and running again, but it cannot resolve any hostnames:
When I do:
I get the following error:
Resolving www.wordpress.org... failed: Temporary failure in name resolution.
Even if I do:
it does not work, same error: cannot resolve hostname.
What is wrong with my server DNS?
UPDATE: This is the output from my /etc/resolv.conf file
# No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # DOMAIN=lab.foo.com bar.foo.com
Also, I can ping IP addresses. So this is a DNS issue