On Thu, 05 Jul 2007 08:28:25 +1000, alex r wrote:
>
> Short question, how do i stop dhclient from overwriting
> /etc/resolv.conf, reason being is I have Bind running on the same box,
> and i have my nameserver set to 127.0.0.1 -its annoying to have to keep
> changing this. is there any mechanism from rc.conf that I can set to
> change the behaviour?
I use the following in /etc/dhclient.conf:
prepend domain-name-servers 127.0.0.1;
This ensures that the local nameserver is listed in /etc/resolv.conf
before any of those obtained via DHCP.
HTH
--
Conrad J. Sabatier
>> Stay informed about: dhclient and /etc/resolv.conf