bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resolv.conf changes and nscd


From: John Fremlin
Subject: resolv.conf changes and nscd
Date: 06 May 2001 03:38:08 +0100

When resolv.conf changes (for example, because you connected to a
different ISP) nscd never becomes aware of it. This is a general
problem with all applications using the libc resolver interface. 

It could be fixed by adding a field to struct __res_state with the
last timestamp of the /etc/resolv.conf file, which would be checked
with stat every gethostby* call. This would cause a syscall of
overhead.

Would such a patch be accepted? Or is there a better solution?

-- 

        http://ape.n3.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]