Subject: Re: reloading /etc/resolv.conf
To: Bill Squier <groo@old-ones.com>
From: Luke Mewburn <lukem@wasabisystems.com>
List: netbsd-help
Date: 02/26/2003 13:32:29
On Tue, Feb 25, 2003 at 09:25:12PM -0500, Bill Squier wrote:
| On Tue, Feb 25, 2003 at 06:23:56PM -0800, Jason R Thorpe wrote:
| > On Tue, Feb 25, 2003 at 09:17:24PM -0500, Bill Squier wrote:
| >
| > > Should it kqueue on /etc/resolv.conf and reload if changes? Probably.
| >
| > Why kqueue it? Just stat it before you do a DNS lookup.
|
| Yeah, or that. It all seems a bit expensive.
There's already a stat each lookup against nsswitch.conf, and noones
complained about that :)
As Jason says, a stat (which is probably against a cached file) is
negligable compared to a lookup from a name service.