public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/10851] New: no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
@ 2009-10-26 17:38 aurelien at aurel32 dot net
  2009-10-26 17:39 ` [Bug libc/10851] " aurelien at aurel32 dot net
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 17:38 UTC (permalink / raw)
  To: glibc-bugs

Starting with glibc 2.10, there is no fallback to nameserver 0.0.0.0 anymore if
/etc/resolv.conf is missing. This is due to this change:

2008-12-02  Ulrich Drepper  <drepper@redhat.com>

        * resolv/res_init.c (__res_vinit): Initialize nscount to zero.

This value should be set back to 1 so that the following code is actually useful:
#ifdef USELOOPBACK
        statp->nsaddr.sin_addr = inet_makeaddr(IN_LOOPBACKNET, 1);
#else
        statp->nsaddr.sin_addr.s_addr = INADDR_ANY;
#endif
        statp->nsaddr.sin_family = AF_INET;
        statp->nsaddr.sin_port = htons(NAMESERVER_PORT);

-- 
           Summary: no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is
                    missing
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: aurelien at aurel32 dot net
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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

------- 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] 11+ messages in thread
[parent not found: <bug-10851-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-07-01  5:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-26 17:38 [Bug libc/10851] New: no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing aurelien at aurel32 dot net
2009-10-26 17:39 ` [Bug libc/10851] " aurelien at aurel32 dot net
2009-11-08 18:41 ` aurelien at aurel32 dot net
2009-11-09 16:38 ` pasky at suse dot cz
2009-11-20  8:28 ` pasky at suse dot cz
2010-08-25 14:48 ` drepper at redhat dot com
2010-09-02 17:55 ` aurelien at aurel32 dot net
2010-09-14 17:04 ` pasky at suse dot cz
     [not found] <bug-10851-131@http.sourceware.org/bugzilla/>
2014-02-16 19:42 ` jackie.rosen at hushmail dot com
2014-05-28 19:42 ` schwab at sourceware dot org
2014-07-01  5:33 ` fweimer 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).