Server Fault is a question and answer site for system and network administrators. 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

Someone is helping me resolve a response time issue on my VPS.

He suggested I look in my resolv.conf and make sure neither of the IPs are timing out.

My resolve.conf looks like this:


when I do a nslookup on the second IP, it times out:

  1. what does this tell me? do I need to inform my vps hosting provider of this?

  2. I noticed many resolv.conf examples on the web have the word "domain" or "search" followed by the domain name. Do I need that as well? My websites seem to work fine without it (domain name =

share|improve this question
you have in your resolv.conf and you try to use as a nameserver during your nslookup. Why? btw.. nslookup is deprecated, as far as I know. Start using 'host' :) – blauwblaatje Sep 5 '09 at 18:22
You should use 'dig' not host :-) – Cian Sep 5 '09 at 18:23
oops, you're right, that typo was the problem... well, still learned a lot from the answers on this question, which is why I have a VPS in the first place, thanks for finding that – Edward Tanguay Sep 5 '09 at 19:31
up vote 1 down vote accepted

if its timing out, perhaps the DNS server is offline? What does this tell you? Well, it means if the primary server fails then your server will not be able to resolv any names aside form the hosts entries.

As far as the domain or search followed by the domain name, its just telling your system that if you search for a name without the fully qualified domain name, it will first search in the said domain.

As far as your website, it should function fine unless you have more than one server and are using DNS to resolv the ip address when they talk to each other, if thats the case, then you may have a problem if your main server goes down. However i'd recommend adding entries to the /etc/hosts file instead.

PS, you can always use OPENDNS servers (

share|improve this answer

What this means is that one of your DNS resolvers isn't working. You can probably just swap in OpenDNS/install your own nameserver.

The 'search' line is a domain that's appended to names you lookup. So, if you have


in your resolv.conf, and you try to go to 'mail' you'll end up at ''. It's not necessary, but is occasionally helpful

share|improve this answer

domain or search are mandatory if you want answers to not full qualified questions (at least one of both). If you always ask "", no need of domain or search.

Concerning your secondary DNS, there may be a lot of causes : - DNS Server out of order, or DNS software out of order - You IP is blacklisted and the server don't answer you - Firewall behind you and the server. - Recursion not allowed in DNS and answer not in cache

You can ask to your provider, but if it is a "big", he knows that a DNS is out.

share|improve this answer

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.