Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Oct 2004 00:22:51 +0200
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        freebsd-current@freebsd.org
Cc:        mbr@freebsd.org
Subject:   Re: dhclient trashes my resolv.conf
Message-ID:  <20041028002251.73eae308.lehmann@ans-netz.de>
In-Reply-To: <20041027214224.GA60882@dragon.nuxi.com>
References:  <20041027224512.2e3b2ae8.lehmann@ans-netz.de> <20041027204852.GY95878@horsey.gshapiro.net> <20041027230039.7a5d0150.lehmann@ans-netz.de> <20041027210303.GZ95878@horsey.gshapiro.net> <20041027233309.122e4207.lehmann@ans-netz.de> <20041027214224.GA60882@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041028002251.73eae308.lehmann>