dhclient trashes my resolv.conf

Gregory Neil Shapiro gshapiro at freebsd.org
Wed Oct 27 13:48:59 PDT 2004


> when I start "dhclient ep1" to use DHCP for ep1, it kicks of my
> /etc/resolv.conf which is a really bad thing. I don't want to use the NS
> which is propagated through DHCP. That system does it's own DNS. And
> regarding to /sbin/dhclient-script, it can't be disabled. Am I right? If
> so, I should fill a PR, right?

Putting this in /etc/dhclient-enter-hooks should prevent any resolv.conf
changes:

!/bin/sh

# Don't replace /etc/resolv.conf
make_resolv_conf() {
}



More information about the freebsd-current mailing list