0

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:

nameserver 69.39.86.5
nameserver 69.39.89.9

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

nslookup yahoo.com 69.39.86.9
  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 = tanguay.info).

Edward Tanguay
  • 1,209
  • 4
  • 22
  • 31
  • you have 69.39.89.9 in your resolv.conf and you try to use 69.39.86.9 as a nameserver during your nslookup. Why? btw.. nslookup is deprecated, as far as I know. Start using 'host' :) – blauwblaatje Sep 05 '09 at 18:22
  • You should use 'dig' not host :-) – Cian Sep 05 '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 05 '09 at 19:31

3 Answers3

2

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

search google.com

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

Cian
  • 5,838
  • 1
  • 28
  • 40
1

domain or search are mandatory if you want answers to not full qualified questions (at least one of both). If you always ask "yahoo.com", 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.

Dom
  • 6,743
  • 1
  • 20
  • 24
1

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 (opendns.com).

theotherreceive
  • 8,365
  • 1
  • 31
  • 44
J Sidhu
  • 440
  • 2
  • 4