Re: dhclient trashes my resolv.conf

From: Oliver Lehmann <lehmann_at_ans-netz.de>
Date: Thu, 28 Oct 2004 00:22:51 +0200
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
point me?

man 8 dhclient-script says

HOOKS
       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.


-- 
 Oliver Lehmann
  http://www.pofo.de/
  http://wishlist.ans-netz.de/
Received on Wed Oct 27 2004 - 20:22:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:19 UTC