This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/984] Respond to changed resolv.conf in gethostbyname


https://sourceware.org/bugzilla/show_bug.cgi?id=984

--- Comment #8 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Carlos O'Donell from comment #7)

> How is that a problem in glibc if sendmail caches the resolver? Or are you
> saying something else? That libc.so.6 caches the resolvers and fails to call
> out to nscd? That would be a real bug, and we'd like to see some kind of
> reproducer for that if possible, so we can fix the issue.

sendmail needs to do MX lookups, so it uses res_query (and res_search,
depending on the context) and not one of the getaddrinfo/get*by* functions. 
It's also a forking daemon.  It initializes the glibc resolver before forking,
and I assume all the child processes inherit the cached list of name servers.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]