RE: DHCPD config




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 <ciscoaix@xxxxxxxxx> 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.

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: adding a second nic
    ... there is no WINS server. ... running DNS server, DNS client, DHCP client, ... running dhcp client or server for these tests. ... Dynamic update was enable to in order to create the AD Domain controller, ...
    (microsoft.public.win2000.dns)
  • DHCPD config
    ... 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. ... ISP's dns ip address like this: ...
    (freebsd-questions)
  • Re: ping computer returns wrong IP
    ... appropriate name->address mapping in the DNS database whenever you do ... name->address mapping information that "ping" may be consulting may have ... configure the DHCP client on that machine to use Dynamic DNS updates ... to use Dynamic DNS updates to register the name->address mapping in your ...
    (microsoft.public.win2000.dns)
  • Re: DHCPD config
    ... Your saying that dhcp client has no built in way to ... communicate to dhcpd the dns ip address it receives ... dhclient-script code at the point where it determines the ... new dns ip address info, by adding code to parse into ...
    (freebsd-questions)
  • Re: Active Directory not updating my DNS
    ... > both and restarted the DNS service. ... Do the servers and clients have bigorange.local as the primary DNS suffix? ... Is the DHCP client service running on all machines? ...
    (microsoft.public.win2000.dns)