dhclient trashes my resolv.conf
lehmann at ans-netz.de
Wed Oct 27 15:22:25 PDT 2004
David O'Brien wrote:
> Why don't you just 'man 5 dhclient.conf' and do things right??
I've tried supersede domain-name-servers ""; in /etc/dhclient.conf, But
that seems to have no effect. I can't see any other way to prevent
dhclient from touching my resolv.conf in that man page. Maybe you can
man 8 dhclient-script says
When it starts, the client script first defines a shell
function, make_resolv_conf , which is later used to create the
/etc/resolv.conf file. To override the default behaviour,
redefine this function in the enter hook script.
More information about the freebsd-current