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

Do DNS resolvers (the ones at the ISP or Opend DNS or Google) have specific timeout period of waiting for a server to respond? If so is it in an RFC or is it just custom to each resolver?

I heard a rumor it is 2 seconds, but have not seen anywhere.

ps. not the local machine resolver, like the one windows has.

share|improve this question
up vote 3 down vote accepted

RFC 1034 ( ) Section 5

RFC 1035 ( ) Section 7

RFC 1536 ( )

It's important to note there are generally two types of resolvers... stub resolvers and iterative resolvers.

Stub is the kind you're likely to have on your personal system. Iterative is the kind that OpenDNS and other ISPs run. They do the "heavy lifting" lookups and are more likely to cache results (though many stub resolvers now also cache).

The resolver timeout/retry/retransmit algorithm is specific to each implementation.

share|improve this answer
+1 for the RFC references. It looks like rfc1536 describes the behavior in BIND 4.2-8.2 which made 3 queries to each nameserver. Apparently this was changed in 8.2.1 to just 2 queries per nameserver. – 3dinfluence Dec 1 '10 at 16:42
The algorithm used by BIND resolvers is quite interesting, how it "locks on" to the best performance nameservers and yet gives the others a chance to shine as well. – delimiter69 Dec 1 '10 at 20:03

I'm not sure if it's an RFC or if each resolver is going to have it's own default.

Typically a resolver will query all the nameservers in order with a low timeout at first. Then it will increase the timeout and query again unless it received an error from the DNS system.

But according to DNS and BIND, 5th edition here is how timeouts work in BIND. BIND tends to be the reference implementation of DNS. The following is how bind 8.2.1 and later behave.

If only one nameserver is configured it will query it with a timeout of 5s and if that timesout then a second query will be attempted with a timeout of 10s. Then if that fails a hard failure will be returned.

If more than one nameserver is configured then it will query each of them in sequence with a timeout of 5s. Then it will loop back through the nameservers in order again with a time out of 10s for the first nameserver, 10/2 for the second nameserver, and 10/3 for the third nameserver. If all of these time out then a hard error is returned. With 3 nameservers it could take up to 33s for the lookup to really fail. Of course most of the time the DNS system either gives you an ip address or a lookup failure before this happens. So I would only expect this to happen if your internet connection is down.

share|improve this answer
That is the same one I saw, which seems a little high. 5 Seconds?… – GeorgeU Dec 1 '10 at 16:36
Yeah that's the same book/chapter I got the information from. – 3dinfluence Dec 1 '10 at 16:54

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.