From owner-freebsd-questions Sun Jan 14 16:52:44 2001 Delivered-To: freebsd-questions@freebsd.org Received: from castle.dreaming.org (host-170.creativehouse.maxlink.com [216.221.214.170]) by hub.freebsd.org (Postfix) with ESMTP id 657CC37B400 for ; Sun, 14 Jan 2001 16:52:25 -0800 (PST) Received: from Laptop (cr592943-a.bloor1.on.wave.home.com [24.156.38.199]) by castle.dreaming.org (8.11.1/8.11.1) with SMTP id f0F0qIn95317; Sun, 14 Jan 2001 19:52:19 -0500 (EST) (envelope-from mit@mitayai.net) From: "Will Mitayai Keeso Rowe" To: "Jon Hamilton" , "Steve Price" Cc: "Dennis Jun" , , Subject: RE: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf Date: Sun, 14 Jan 2001 19:52:14 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <20010115002847.87D6C177@woodstock.monkey.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG yeah, i use the same for Roger@Home in Toronto, Canada... we need to send the "client identifier" code (hostname) they give us to receive an IP interface "ed0" { supersede domain-name "home.domain.com"; prepend domain-name-servers 127.0.0.1; supersede host-name "gateway"; send dhcp-client-identifier "crXXXXXX-a"; } :-----Original Message----- :From: owner-chat@gtabug.org [mailto:owner-chat@gtabug.org]On Behalf Of :Jon Hamilton :Sent: January 14, 2001 19:29 PM :To: Steve Price :Cc: Dennis Jun; freebsd-questions@FreeBSD.ORG; chat@gtabug.org :Subject: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf : : : :In message <20010114175337.E65118@bonsai.knology.net>, Steve Price wrote: :} On Sun, Jan 14, 2001 at 06:41:22PM -0500, Dennis Jun wrote: :} # Hello all! :} # :} # I recently setup a DNS caching server with named. I followed the :} # instructions in Lehey's "The Complete FreeBSD." However I'm on :@home and I :} # my ip settings via dhcp. Thus it resets my /etc/resolv.conf :all the time, :} # that is, it removes my first line of nameserver 127.0.0.1 :I'm wondering :} # how can prevert/remedy this? I guess most people would suggest a simple :} # script cronned, but is there another solution? :} :} The following manpage should have all the info you need. Essentially :} you'll have to teach this script to add 127.0.0.1 back to resolv.conf :} when your box renegotiates its IP address. :} :} man 8 dhclient-script : :That's doing it the hard way. : :Put something similar to the following in /etc/dhclient.conf (adjust the :interface name to whatever is appropriate for your system): : : interface "dc0" { : prepend domain-name-servers 127.0.0.1; : } : :You can prepend some stuff to the domain name search order (and lots of :other stuff, if you need to); see the man page for dhclient.conf for :details. : :-- : Jon Hamilton : hamilton@pobox.com : : :To subscribe or unsubscribe, send mail to majordomo@gtabug.org :with the text :"subscribe chat" or "unsubscribe chat" in the body. : To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message