From owner-freebsd-questions Thu May 30 21: 8:46 2002 Delivered-To: freebsd-questions@freebsd.org Received: from zephir.primus.ca (mail.tor.primus.ca [216.254.136.21]) by hub.freebsd.org (Postfix) with ESMTP id DED4637B400 for ; Thu, 30 May 2002 21:08:42 -0700 (PDT) Received: from dialin-135-29.hamilton.primus.ca ([209.90.135.29]) by zephir.primus.ca with esmtp (Exim 3.33 #16) id 17DdiQ-0007XC-0A; Fri, 31 May 2002 00:08:38 -0400 Date: Fri, 31 May 2002 00:08:15 -0400 (EDT) From: Jason Hunt X-X-Sender: leth@lethargic.dyndns.org To: Carolyn Longfoot Cc: freebsd-questions@FreeBSD.ORG Subject: Re: DNS/DHCP Irritation In-Reply-To: Message-ID: <20020530235930.V99929-100000@lethargic.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 30 May 2002, Carolyn Longfoot wrote: > > Now that I have my own DNS server running I noticed an annoying issue: I get > my static IP from the DHCP server that's built into the DSL gatway. The DHCP > server always gives me the same IP but the effect is that whenever the lease > expires, /etc/resolv.conf gets rewritten and the entry that points to my > local DNS server is lost. > > Of course I could create the desired resolv.conf and copy it via cron every > X minutes to /etc/resolv.conf but that feels sooooo clunky that I was > thinking some smart people might have a better idea, like a way to convince > the dhcp client to leave /etc/resolv.conf alone. > > Any takers? > Check the "DYNAMIC DNS" section in the dhclient.conf(5) manpage. Do you have any of these options configured? It seems as if dhclient shouldn't be updating anything unless you've told it to. I got kind of confused by the whole thing though. Also check the dhclient-script(8) manpage. I have never had dhclient do this to me, but I don't have a DNS server on my laptop either. Try setting "no-client-updates true;" in /etc/dhclient.conf though and see what happens. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message