Date: Thu, 6 Apr 2006 16:03:30 -0600 (MDT) From: Lyndon Nerenberg <lyndon@orthanc.ca> To: Ulrich Spoerlein <spoerlein@googlemail.com> Cc: stable@freebsd.org Subject: Re: resolver doesn't see resolv.conf changes Message-ID: <20060406153938.C78654@orthanc.ca> In-Reply-To: <20060405152718.GA1003@roadrunner.q.local> References: <20060405152718.GA1003@roadrunner.q.local>
next in thread | previous in thread | raw e-mail | index | archive | help
> Is the resolver supposed to periodically check for updates to the
> resolv.conf, or are the applications somehow caching the IP of the DNS
> server?
No, resolv.conf is only read once when the resolver routines initialize.
The solution is to run a local caching nameserver instance. You should do
this anyway, for performance reasons. Add 'named_enable="YES"' to
/etc/rc.conf, and modify your /etc/dhclient.conf as follows:
interface "ath0" {
supersede domain-name "orthanc.ca";
supersede domain-name-servers 127.0.0.1;
}
interface "bge0" {
supersede domain-name "orthanc.ca";
supersede domain-name-servers 127.0.0.1;
}
Change the domain string to something more appropriate, and adjust the
interface names to match your laptop. You'll need to start named and
restart the dhclient instances (in that order) for the changes to take
effect.
--lyndon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060406153938.C78654>
