Bug 64823 - rotate option doesnt work in resolv.conf
Summary: rotate option doesnt work in resolv.conf
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: glibc
Version: 7.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-13 07:21 UTC by Terry Davis
Modified: 2016-11-24 15:07 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-11-05 18:32:02 UTC
Embargoed:


Attachments (Terms of Use)

Description Terry Davis 2002-05-13 07:21:21 UTC
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

Comment 1 Ulrich Drepper 2003-04-23 07:47:34 UTC
Try this again with RHL9.  We had some changes in this area of the code on May
31st 2002.

Comment 2 David Mendelsohn 2003-09-05 12:35:35 UTC
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.




Comment 3 Jakub Jelinek 2003-09-05 12:49:19 UTC
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.

Comment 4 David Mendelsohn 2003-09-05 13:17:39 UTC
DIG, nslookup, and squid always select the first nameserver, with and 
without "options rotate".  

This is with a straight load of RH9.

Comment 5 Jakub Jelinek 2003-09-05 13:23:21 UTC
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.

Comment 6 Ulrich Drepper 2003-10-03 09:56:08 UTC
Is this fixed?  Can I close the bug?  I'll do it if I don't hear anyhting in the
next days.

Comment 7 Ulrich Drepper 2003-11-05 18:32:02 UTC
No response.  Closing.


Note You need to log in before you can comment on or make changes to this bug.