Improved DNS resolving for laptops?
Owen Taylor
otaylor@redhat.com
Mon Jul 26 15:59:00 GMT 2004
On Mon, 2004-07-26 at 04:38, Petter Reinholdtsen wrote:
> [Nix]
> > If you don't mind nonportability you could use fcntl (...,
> > F_NOTIFY,...) to find out the instant resolv.conf is changed. (In
> > practice you'd probably just set a flag on notification and consult
> > the flag on next DNS lookup: rereading resolv.conf more often than
> > that is pointless.)
>
> This feature notifies the process using SIGIO (at least acording to
> <URL:http://linux.com.hk/PenguinWeb/manpage.jsp?name=fcntl§ion=2>),
> so it is not very good to use in a library.
>
> Checking the file every 10 minutes or every 10000 lookup sounds like a
> good idea. I wish glibc would do something similiar.
Consider a desktop application - I plug in my laptop at work - is
it useful if the resolve.conf changes are noticed 10 minutes later?
I think it's basically binary - apps get the change on the next
lookup or they are broken from the users point of view. Any mechanism
that implements something less than that isn't particularly useful.
Regards,
Owen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20040726/9279f6d6/attachment.sig>
More information about the Libc-alpha
mailing list