Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Colin Walters
On Sat, Jun 19, 2010 at 10:54 PM, Dan Williams d...@redhat.com wrote: I'm just gonna make NM use a local caching nameserver (which means dnsmasq) by default at some point soon.  People that don't want it can turn it off. When thinking about this, there's a rather obvious patch here that

Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Pádraig Brady
On 21/06/10 15:40, Colin Walters wrote: On Sat, Jun 19, 2010 at 10:54 PM, Dan Williams d...@redhat.com wrote: I'm just gonna make NM use a local caching nameserver (which means dnsmasq) by default at some point soon. People that don't want it can turn it off. When thinking about this,

Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Colin Walters
2010/6/21 Pádraig Brady p...@draigbrady.com: Sorry I haven't been following this really, but I loath config options that aren't absolutely required, and this seems like a place where we could just stat() (cache) always. What's the problem with doing that? I too would be really interested in

Re: gethostbyname() and resolv.conf updates

2010-06-20 Thread Nicolas Chauvet
2010/6/17 Bernie Innocenti ber...@codewiz.org: Hello, xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A There was a topic 3 years ago about replacing gethostby*

Re: gethostbyname() and resolv.conf updates

2010-06-19 Thread Dan Williams
On Fri, 2010-06-18 at 09:59 -0400, Colin Walters wrote: On Fri, Jun 18, 2010 at 9:56 AM, Stephen Gallagher sgall...@redhat.com wrote: Sorry, my reply was more directed against the assertion that NSCD should be mandatory to solve this without changes to glibc. I agree that it would be

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Stephen Gallagher
On 06/17/2010 05:41 PM, Bernie Innocenti wrote: Hello, xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A Debian user told me that Debian carries a glibc patch to

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Stephen Gallagher
On 06/17/2010 06:05 PM, Michal Schmidt wrote: On Thu, 17 Jun 2010 17:41:27 -0400 Bernie Innocenti wrote: xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A Debian user

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Stephen Gallagher
On 06/18/2010 09:43 AM, Colin Walters wrote: On Fri, Jun 18, 2010 at 8:23 AM, Stephen Gallaghersgall...@redhat.com wrote: This is the entire purpose of the res_init() function in glibc. If your application needs to be aware of a change in resolv.conf, you should be monitoring it with

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Colin Walters
On Fri, Jun 18, 2010 at 9:56 AM, Stephen Gallagher sgall...@redhat.com wrote: Sorry, my reply was more directed against the assertion that NSCD should be mandatory to solve this without changes to glibc. I agree that it would be ideal for gethostbyname() to internally perform a res_init()

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Stephen Gallagher
On 06/18/2010 09:59 AM, Colin Walters wrote: On Fri, Jun 18, 2010 at 9:56 AM, Stephen Gallaghersgall...@redhat.com wrote: Sorry, my reply was more directed against the assertion that NSCD should be mandatory to solve this without changes to glibc. I agree that it would be ideal for

gethostbyname() and resolv.conf updates

2010-06-17 Thread Bernie Innocenti
Hello, xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A Debian user told me that Debian carries a glibc patch to make processes notice resolv.conf updates and reload it.

Re: gethostbyname() and resolv.conf updates

2010-06-17 Thread Jason L Tibbitts III
BI == Bernie Innocenti ber...@codewiz.org writes: BI A Debian user told me that Debian carries a glibc patch to make BI processes notice resolv.conf updates and reload it. Is there any BI chance we could apply the same patch in Fedora too? I don't know all BI the details, but I guess there

Re: gethostbyname() and resolv.conf updates

2010-06-17 Thread Roland McGrath
nscd and sssd exist in part exactly to address this issue. -- devel mailing list devel@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/devel

Re: gethostbyname() and resolv.conf updates

2010-06-17 Thread Michal Schmidt
On Thu, 17 Jun 2010 17:41:27 -0400 Bernie Innocenti wrote: xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A Debian user told me that Debian carries a glibc patch to

Re: gethostbyname() and resolv.conf updates

2010-06-17 Thread Huzaifa Sidhpurwala
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bernie Innocenti wrote: Hello, xchat in Fedora needs to be restarted after switching to a different nameserver or it fails to resolve. The xchat developers say that all xchat does is call gethostbyname(). A Debian user told me that Debian