From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc2) Gecko/20020510 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 it, however. Version-Release number of selected component (if applicable): How reproducible: Always 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. Additional info: Here is my config: domain domain.com nameserver 10.10.1.5 nameserver 10.10.1.8 options rotate search domain.com 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? "options timeout:1,rotate" Or space delimited? "options timeout:1 rotate" Thank you
Try this again with RHL9. We had some changes in this area of the code on May 31st 2002.
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 next days.
No response. Closing.