Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Colin Walters
2010/6/21 Pádraig Brady : > > 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 any real-world

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

Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Colin Walters
On Sat, Jun 19, 2010 at 10:54 PM, Dan Williams 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 really should hav

Re: gethostbyname() and resolv.conf updates

2010-06-21 Thread Dan Winship
On 06/20/2010 04:41 AM, Nicolas Chauvet wrote: > 2010/6/17 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 > There was a topic

Re: gethostbyname() and resolv.conf updates

2010-06-20 Thread Nicolas Chauvet
2010/6/17 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 There was a topic 3 years ago about replacing gethostby* functions by geta

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 > 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 ge

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 Gallagher > 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() t

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Colin Walters
On Fri, Jun 18, 2010 at 9:56 AM, Stephen Gallagher 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() > when appropriate.

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 Gallagher > 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 inotify and cal

Re: gethostbyname() and resolv.conf updates

2010-06-18 Thread Colin Walters
On Fri, Jun 18, 2010 at 8:23 AM, Stephen Gallagher 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 inotify and calling res_init() anytime the file is > changed. That's

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 D

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

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 Debi

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

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 Jason L Tibbitts III
> "BI" == Bernie Innocenti 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 might be a g

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.