public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts
@ 2004-09-21  4:38 vapier at gentoo dot org
  2004-09-21  4:40 ` [Bug libc/395] " vapier at gentoo dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2004-09-21  4:38 UTC (permalink / raw)
  To: glibc-bugs

original report here:
http://sources.redhat.com/ml/libc-alpha/2004-09/msg00146.html

basically somewhere between Aug 08 2004 and Sep 18 2004, the resolver library's
behavior broke when dealing with 'domain' entries in resolv.conf

when looking up a hostname, the old behavior was to try to search for the
hostname in each of the domains found in resolv.conf ... if those lookups
failed, the hostname itself would be tried
the new behavior is to only search in the domains found in resolv.conf

for example, i have the host 'aurora' setup to resolve to '192.168.0.7' on my
dns server ... on a client machine, i would look up 'aurora' via gethostbyname()
... in the resolv.conf on the client machine, i have one domain entry, 'domain
wh0rd.org' ...

the old glibc would query 'aurora.wh0rd.org' and fail, and then fall back and
try to look up 'aurora' which would work
the new glibc only tries 'aurora.wh0rd.org' and then fails

sniffing dns traffic via ethereal backed up this analysis

-- 
           Summary: resolver updates causes resolver to stop resolving some
                    hosts
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: gotom at debian dot or dot jp
        ReportedBy: vapier at gentoo dot org
                CC: glibc-bugs at sources dot redhat dot com,lv at gentoo
                    dot org
  GCC host triplet: i686-pc-linux-gnu


http://sources.redhat.com/bugzilla/show_bug.cgi?id=395

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/395] resolver updates causes resolver to stop resolving some hosts
  2004-09-21  4:38 [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts vapier at gentoo dot org
@ 2004-09-21  4:40 ` vapier at gentoo dot org
  2004-09-27  4:22 ` drepper at redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2004-09-21  4:40 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2004-09-21 04:40 -------
i neglected to mention that if i remove the 'domain wh0rd.org' from the
resolv.conf on my client, the new glibc will attempt to lookup just 'aurora' and
thus work 'properly'

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=395

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/395] resolver updates causes resolver to stop resolving some hosts
  2004-09-21  4:38 [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts vapier at gentoo dot org
  2004-09-21  4:40 ` [Bug libc/395] " vapier at gentoo dot org
@ 2004-09-27  4:22 ` drepper at redhat dot com
  2004-09-28  3:56 ` vapier at gentoo dot org
  2005-09-23 16:36 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2004-09-27  4:22 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2004-09-27 04:22 -------
I know which change this was, revision 1.20 of resolv/res_query.c (minus the
accidentally left in debug stuff).  But I maintain that this is the correct
change and that it worked for you by accident.

Try adding

  options ndots:0

to your resolv.conf.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sources.redhat.com/bugzilla/show_bug.cgi?id=395

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/395] resolver updates causes resolver to stop resolving some hosts
  2004-09-21  4:38 [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts vapier at gentoo dot org
  2004-09-21  4:40 ` [Bug libc/395] " vapier at gentoo dot org
  2004-09-27  4:22 ` drepper at redhat dot com
@ 2004-09-28  3:56 ` vapier at gentoo dot org
  2005-09-23 16:36 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: vapier at gentoo dot org @ 2004-09-28  3:56 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From vapier at gentoo dot org  2004-09-28 03:56 -------
'options ndots:0' restored the previous behavior like i described and like you said

i'm not sure if there are any specs which cover the 'proper' behavior with
respect to resolv.conf/domain/etc... (SuSv3 and such) but like you say, when
using the 'domain' option in resolv.conf, this seems like 'proper' behavior,
even it does take 'more' effort to get back to the older/simpler behavior

perhaps we can get the man page to make a note of the 'expected' behavior under
the ndots section so that people (such as myself) wont file anymore 'invalid'
bugs unknowingly ?

-- 


http://sources.redhat.com/bugzilla/show_bug.cgi?id=395

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug libc/395] resolver updates causes resolver to stop resolving some hosts
  2004-09-21  4:38 [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts vapier at gentoo dot org
                   ` (2 preceding siblings ...)
  2004-09-28  3:56 ` vapier at gentoo dot org
@ 2005-09-23 16:36 ` drepper at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: drepper at redhat dot com @ 2005-09-23 16:36 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2005-09-23 16:36 -------
Man pages are not part of glibc.  Bring this up with the appropriate person.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |WORKSFORME


http://sourceware.org/bugzilla/show_bug.cgi?id=395

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-09-23 16:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-21  4:38 [Bug libc/395] New: resolver updates causes resolver to stop resolving some hosts vapier at gentoo dot org
2004-09-21  4:40 ` [Bug libc/395] " vapier at gentoo dot org
2004-09-27  4:22 ` drepper at redhat dot com
2004-09-28  3:56 ` vapier at gentoo dot org
2005-09-23 16:36 ` drepper at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).