From owner-freebsd-questions@FreeBSD.ORG Fri Mar 31 21:43:28 2006 Return-Path: X-Original-To: freebsd-questions@FreeBSD.ORG Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0663716A41F for ; Fri, 31 Mar 2006 21:43:28 +0000 (UTC) (envelope-from fbsd_user@a1poweruser.com) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5066C43D53 for ; Fri, 31 Mar 2006 21:43:23 +0000 (GMT) (envelope-from fbsd_user@a1poweruser.com) Received: from barbish ([70.39.69.56]) by mta10.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20060331214322.TDBZ8301.mta10.adelphia.net@barbish>; Fri, 31 Mar 2006 16:43:22 -0500 From: "fbsd_user" To: Date: Fri, 31 Mar 2006 16:43:22 -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.6604 (9.0.2911.0) In-Reply-To: <44y7yqfmni.fsf@be-well.ilk.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478 Cc: lowell@be-well.ilk.org, ciscoaix@yahoo.com Subject: RE: DHCPD config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fbsd_user@a1poweruser.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 21:43:28 -0000 Let me see if I understand you correctly. Your saying that dhcp client has no built in way to communicate to dhcpd the dns ip address it receives at boot time or during the normal lease update process? That your suggesting the work around is to customize the dhclient-script code at the point where it determines the /etc/resolv.conf file gets deleted and re-written with the new dns ip address info, by adding code to parse into the dhcpd.conf file replacing the option line for dns ip addresses with the new ip address? Well I looked at that script code and it's way above my ability to write script code at that level. The other suggestion of adding my own LAN DNS server is over kill because my LAN just has 2 pc's on it and the only purpose of the LAN is to share a single dynamic IP address from my ISP. There must be a lot of other people in the same boat as I am who have all ready customized the dhclient-script or more properly the /etc/dhclient-exit-hooks file to edit the dhcpd.conf file with the correct DNS ip address. Do you know of any web sites that contain dhcp scripts? *********************************************************** Kris Anderson writes: > I think the answer you are looking for lies in > dhclient-script. I noticed it futzes with resolv.conf. > If you happen to notice resolv.conf changing (You can > test this about by making a backup of resolv.conf, > erasing its contents and then rebooting the machine, > just for the sake of everything running properly and > seeing if the contents of resolv.conf get repopulated > with your ISPs DNS settings) then you can create a > script to grab the elements needed from the ISP and > drop them in to a file for dhcpd to read and then > SIGTERM dhcpd and restart it. Basically, "have dhclient-script rewrite the dhcpd.conf". Running your own nameserver and pointing the internal DHCP clients to it is another option, but slightly less resistant to failures. Doing both will get you the best of both worlds.