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; 8+ 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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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 ` aurelien at aurel32 dot net
  2009-11-08 18:41 ` aurelien at aurel32 dot net
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aurelien at aurel32 dot net @ 2009-10-26 17:39 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-10-26 17:38 -------
Created an attachment (id=4322)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4322&action=view)
Patch to fix the problem


-- 


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: aurelien at aurel32 dot net @ 2009-11-08 18:41 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2009-11-08 18:41 -------
Created an attachment (id=4369)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4369&action=view)
New patch

The previous patch does not work in case /etc/resolv.conf exists, but does not
contain a nameserver entry. This new patch also takes that into account.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
Attachment #4322 is|0                           |1
           obsolete|                            |


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2009-11-09 16:38 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2009-11-09 16:38 -------
See also http://sourceware.org/ml/libc-alpha/2009-02/msg00028.html :(

-- 


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (2 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2009-11-20  8:28 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2009-11-20 08:28 -------
Created an attachment (id=4402)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=4402&action=view)
alternative patch

Oops, I haven't noticed you already implemented a fix; anyway, here's what I've
done independently, somewhat simpler patch. YMMV.

-- 


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (3 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: drepper at redhat dot com @ 2010-08-25 14:48 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From drepper at redhat dot com  2010-08-25 14:48 -------
I checked in a different patch.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (4 preceding siblings ...)
  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
  6 siblings, 0 replies; 8+ messages in thread
From: aurelien at aurel32 dot net @ 2010-09-02 17:55 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From aurelien at aurel32 dot net  2010-09-02 17:55 -------
(In reply to comment #5)
> I checked in a different patch.

... but broken what. You forget to set statp->nscount to 1, so it doesn't work.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |


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] 8+ messages in thread

* [Bug libc/10851] no fallback to nameserver 0.0.0.0 if /etc/resolv.conf is missing
  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
                   ` (5 preceding siblings ...)
  2010-09-02 17:55 ` aurelien at aurel32 dot net
@ 2010-09-14 17:04 ` pasky at suse dot cz
  6 siblings, 0 replies; 8+ messages in thread
From: pasky at suse dot cz @ 2010-09-14 17:04 UTC (permalink / raw)
  To: glibc-bugs


------- Additional Comments From pasky at suse dot cz  2010-09-14 17:04 -------
Fixed in Git now for good, hopefully.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


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] 8+ messages in thread

end of thread, other threads:[~2010-09-14 17:04 UTC | newest]

Thread overview: 8+ 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

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).