DHCPD config

Kris Anderson ciscoaix at yahoo.com
Fri Mar 31 18:38:00 UTC 2006


--- fbsd_user <fbsd_user at 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 at freebsd.org mailing list
>
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at 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 


More information about the freebsd-questions mailing list