Prevent DHCP from changing resolv.conf
Joerg.Pulz at frm2.tum.de
Fri Apr 22 03:00:50 PDT 2005
-----BEGIN PGP SIGNED MESSAGE-----
On Fri, 22 Apr 2005, Fabian Anklam wrote:
> Hi All,
> I have a minor problem regarding my network configuration,
> specifically that the external interface on my router gets it's IP via
> DHCP from the ISP, so in rc.conf
> is set. This leads to the single entry in resolv.conf that I want to
> be there, namely
> nameserver 127.0.0.1
> being replaced with my ISP's nameservers, which in return makes
> resolving of LAN IPs or even localhost via the installed BIND
> difficult for the machine. I don't want dhclient to change the
> I checked the man pages for resolv.conf, rc.conf and dhclient but
> couldn't find anything there relating to my problem.
the file you need to modify is /etc/dhclient.conf.
for parameters see dhclient.conf(5)
normally this file is empty, but you can insert global or per interface
require lines for informations the DHCP server has to submit to the client
that the IP is acceptable. you can also insert global or per interface
lines for informations you want to get from the DHCP server if available
but you don't care if the DHCP server gives you nothing on these
options and the IP address is accepted.
hope that helps
The beginning is the most important part of the work.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
-----END PGP SIGNATURE-----
More information about the freebsd-questions