From owner-freebsd-questions Sun Jan 14 20:20:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from femail1.rdc1.on.home.com (femail1.rdc1.on.home.com [24.2.9.88]) by hub.freebsd.org (Postfix) with ESMTP id AE86D37B402 for ; Sun, 14 Jan 2001 20:20:19 -0800 (PST) Received: from wilma ([24.114.163.66]) by femail1.rdc1.on.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20010115041928.GUVO20641.femail1.rdc1.on.home.com@wilma>; Sun, 14 Jan 2001 20:19:28 -0800 Message-ID: <006a01c07eaa$7bffddc0$0300a8c0@wilma> From: "Dennis Jun" To: "Will Mitayai Keeso Rowe" Cc: , References: Subject: Re: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf Date: Sun, 14 Jan 2001 23:20:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thanx! that worked like a charm! ----- Original Message ----- From: "Will Mitayai Keeso Rowe" To: "Jon Hamilton" ; "Steve Price" Cc: "Dennis Jun" ; ; Sent: Sunday, January 14, 2001 7:52 PM Subject: RE: gtabug - Re: DNS caching, DHCP, /etc/resolv.conf > 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