Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.
  • In which oder are the nameservers stated in resolv.conf used for name resolution?
  • Is there a way to influence this order?
  • Is this behavior distribution dependent? (I'm using Debian Squeeze)
share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

You have a few options on Linux systems...

By default, the nameservers are used in listed order with a 5-second timeout before moving to the next entry.

  • In addition, you can set the options rotate parameter to query the DNS servers in a round-robin manner.
  • You can also lower the default timeout of 5 seconds to 1 second using options timeout:1.

Also see: http://linux.die.net/man/5/resolv.conf

share|improve this answer
add comment

According to recolv.conf man page, they are used in the order listed in the file.

To change the order they are being used, change the order listed in your resolv.conf.

It is NOT distribution dependent.

share|improve this answer
add comment

Your Answer

 
discard

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.