Date: Sat, 10 Mar 2001 19:08:07 -0600 From: David Kelly <dkelly@hiwaay.net> To: Will Yardley <william@hq.newdream.net> Cc: questions@FreeBSD.ORG Subject: Re: resolv.conf / dhcp Message-ID: <200103110108.f2B187e24994@grumpy.dyndns.org> In-Reply-To: Message from Will Yardley <william@hq.newdream.net> of "Sat, 10 Mar 2001 16:24:07 PST." <3AAAC5A7.14CC3510@hq.newdream.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103110108.f2B187e24994>