Red Hat Bugzilla – Bug 64823
rotate option doesnt work in resolv.conf
Last modified: 2016-11-24 10:07:39 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2)
Description of problem:
I cannot get the 'rotate' option to work in resolv.conf. I have tried this on
6.2,7.1,7.2, and now 7.3 and it still doesnt work. resolv.h has references to
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Enter 'options rotate' in resolv.conf
2. Try query
Actual Results: It always queries your first server first.
Expected Results: It should round-robin your dns servers.
Here is my config:
On another note, some options DO work. timeout works great. :)
Might also want to update man page so that it says HOW to notate multiple options...
should they be comma delimited?
Or space delimited?
"options timeout:1 rotate"
Try this again with RHL9. We had some changes in this area of the code on May
I've tried this on RH9, RHES 2.1, and RHES 3.0 Beta. It still doesn't function.
I found an old mailing list entry where Jakub had posted a patch, but it
doesn't appear to be applied or it didn't function correctly.
Well, it certainly works for me just fine.
Tried a program with 3 different gethostname() calls in it, 3 different nameservers
in resolv.conf. Without options rotate, in strace output it always queried the
first one, with that option it queried for each query a different one.
DIG, nslookup, and squid always select the first nameserver, with and
without "options rotate".
This is with a straight load of RH9.
nslookup and dig are uninteresting, they don't use glibc but roll their own.
With squid, you were trying just one lookup per program invocation or more
lookups during the runtime of the program? RES_ROTATE will choose always the same
nameserver for the first lookup, then rotate by one, etc.
Is this fixed? Can I close the bug? I'll do it if I don't hear anyhting in the
No response. Closing.