Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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?


share|improve this question
up vote 4 down vote accepted

I got this to work by making a change (adding DNS servers) to the following file:



As suggested by this file:


share|improve this answer
Yeah, happened to me too and basically the 2 nameservers in /etc/resolv.conf so I changed them to the ones you have there, Google's. – User Feb 5 '15 at 2:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.