From owner-freebsd-questions@FreeBSD.ORG Fri Mar 31 18:38:00 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 0948316A401 for ; Fri, 31 Mar 2006 18:38:00 +0000 (UTC) (envelope-from ciscoaix@yahoo.com) Received: from web52703.mail.yahoo.com (web52703.mail.yahoo.com [206.190.48.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 4987A43D46 for ; Fri, 31 Mar 2006 18:37:59 +0000 (GMT) (envelope-from ciscoaix@yahoo.com) Received: (qmail 66267 invoked by uid 60001); 31 Mar 2006 18:37:58 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wl/NH84sHX4Jc9cnOrIBFqIhz6EO4qiNKasy3s+d/cK8G8SCy3VBg96xH8L9E1du3i7VGpSK3xIAjWIULDGFNvzpfynyWtFinA8YPVdnq9UiSfbSPN628Ld7RfAw6LmUcvtf0m1hXSOvvQjuKD+qt8ccQhlPUWwGGIM+RETtdHY= ; Message-ID: <20060331183758.66265.qmail@web52703.mail.yahoo.com> Received: from [71.193.133.190] by web52703.mail.yahoo.com via HTTP; Fri, 31 Mar 2006 10:37:58 PST Date: Fri, 31 Mar 2006 10:37:58 -0800 (PST) From: Kris Anderson To: fbsd_user@a1poweruser.com, "freebsd-questions@FreeBSD. ORG" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: Subject: Re: DHCPD config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 18:38:00 -0000 --- fbsd_user wrote: > I use dhcp client to get the info needed from my ISP > at boot time. > I also run dhcpd for issuing ip address to my LAN. > > In the dhcpd.conf file I have option statement for > the > ISP's dns ip address like this: > > option domain-name-servers xx.168.xxx.6, > xx.168.xxx.7; > > the xx are just for this post. > > How can I change this so dhcpd will automatically > use the > dns ip address the dhcp client gets so when the ISP > changes > the ip address of the dns to use the change will > also effect dhcpd? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Hey there, 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. In man dhcpd there is a hint about these two items: omapi, dhcpctl. The omapi (A way to control the dhcpd process without having to shut it down, or so the man page claims) man page seems to exist while the dhcpctl one does not, nor does the command exist (I was able to find it in source though). Hope that helps you in your quest. ~Mr. Anderson __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com