Subject: Re: reloading /etc/resolv.conf
To: None <netbsd-help@netbsd.org>
From: Alan Post <apost@recalcitrant.org>
List: netbsd-help
Date: 02/26/2003 02:02:58
In article <20030226015518.GS25611@old-ones.com>, Bill Squier wrote:
> On Wed, Feb 26, 2003 at 01:43:19AM +0000, Alan Post wrote:
>> In article <296790779.1046204894@[192.168.187.5]>, Mark E. Perkins wrote:
>> > Is there a way to get a reload of /etc/resolv.conf without rebooting?
>> > What I really want to do is add a newly configured local nameserver to
>> > the list, but would like to do it w/o rebooting.
>> 
>> Just change it, and your machine will follow.  No need for reboot.
> 
> That's not true.  _PATH_RESCONF is only loaded at resolver library init time
> (first use of a resolver function) and isn't reloaded after that.  Processes
> using the libc resolver will not see changes to /etc/resolv.conf after its
> initial reading of it.

I see.  So one should restart any daemons that do DNS lookups (e.g. mail
servers)?

  Alan