Date: Fri, 31 Mar 2006 10:37:58 -0800 (PST) From: Kris Anderson <ciscoaix@yahoo.com> To: fbsd_user@a1poweruser.com, "freebsd-questions@FreeBSD. ORG" <freebsd-questions@FreeBSD.ORG> Subject: Re: DHCPD config Message-ID: <20060331183758.66265.qmail@web52703.mail.yahoo.com> In-Reply-To: <MIEPLLIBMLEEABPDBIEGGEMEHDAA.fbsd_user@a1poweruser.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--- fbsd_user <fbsd_user@a1poweruser.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060331183758.66265.qmail>