From owner-freebsd-questions Sat Mar 10 17: 9:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from grumpy.dyndns.org (user-24-214-56-129.knology.net [24.214.56.129]) by hub.freebsd.org (Postfix) with ESMTP id EA32A37B718 for ; Sat, 10 Mar 2001 17:09:27 -0800 (PST) (envelope-from dkelly@grumpy.dyndns.org) Received: from localhost (localhost [127.0.0.1]) by grumpy.dyndns.org (8.11.2/8.11.2) with ESMTP id f2B187e24994; Sat, 10 Mar 2001 19:08:07 -0600 (CST) (envelope-from dkelly@grumpy.dyndns.org) Message-Id: <200103110108.f2B187e24994@grumpy.dyndns.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Will Yardley Cc: questions@FreeBSD.ORG From: David Kelly Subject: Re: resolv.conf / dhcp In-reply-to: Message from Will Yardley of "Sat, 10 Mar 2001 16:24:07 PST." <3AAAC5A7.14CC3510@hq.newdream.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 10 Mar 2001 19:08:07 -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Will Yardley writes: > a couple questions about this. > > does anyone have a simple solution to /etc/resolv.conf being overwritten > everytime the dhcp lease is renewed ?? i'm using dhclient and the dhcp > server is an obsd router / firewall Its documented somewhere. Maybe in the dhclient scripts themselves. But to point you in the right direction create /etc/dhclient-enter-hooks and make it executable. Put something in it like this: #!/bin/sh make_resolv_conf() { # Don't do anything in this routine and /etc/resolv.conf # will not be mangled by dhclient. # # Otherwise read whatever values you want out of the # environment and write your own resolv.conf here. } -- David Kelly N4HHE, dkelly@hiwaay.net ===================================================================== The human mind ordinarily operates at only ten percent of its capacity -- the rest is overhead for the operating system. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message