Subject: Re: re-reading /etc/resolv.conf on change
To: Simon J. Gerraty <sjg@crufty.net>
From: Perry E. Metzger <perry@piermont.com>
List: tech-userlevel
Date: 12/30/2003 09:47:38
sjg@crufty.net (Simon J. Gerraty) writes:
> Is kqueue the right solution then?  How bad would it be to simply
> open resolv.conf and fstat it?

I think that might actually be the right solution.

> You could record the mtime as well as the time you last looked and
> avoid doing so more than once in some window.  That would be bog
> simple and probably not too expensive.

Yah.

> You could also invalidate the handle on certain DNS failures to speed 
> things up even with a bigger cycle time for re-checking...


-- 
Perry E. Metzger		perry@piermont.com