DHCP hosts to DNS records

Petri Rosenström petri.rosenstrom at gmail.com
Mon Nov 7 08:24:55 EST 2011


Hi,

I looked at the issue of getting dhcp hostnames to dns names
automatically. Dave pointed me to
https://github.com/dtaht/ceropackages/blob/master/net/bind-dhcp-hooks/files/etc/ddns6.sh
and my some slight modifications I got it working :)

There are a few things that are required for this hack to work.

named_init.patch is needed for fixing nsupdate -l command. I think
this should be fixed someway anyhow.

dnsmasq_net6.sh goes to /etc/ on the router and suddenly dhcp
hostnames start working as hostname.home.lan .

I know this isn't perfect, but I wanted to share this initial version
of it. There are several security implications and e.g. reverse
doesn't work. it writes the records to the flash (a few times per
record (first to a binary file, then to the real record))

btw. if ya want ipv6 (AAAA) records you need the ipv6calc package.
(it's built as an module for cero)

Any comments, suggestions?

Best regards
Petri Rosenström
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dnsmasq_net6.sh
Type: application/x-sh
Size: 2518 bytes
Desc: not available
URL: <https://lists.bufferbloat.net/pipermail/bloat-devel/attachments/20111107/75580ec9/attachment-0002.sh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: named_init.patch
Type: text/x-patch
Size: 393 bytes
Desc: not available
URL: <https://lists.bufferbloat.net/pipermail/bloat-devel/attachments/20111107/75580ec9/attachment-0002.bin>


More information about the Bloat-devel mailing list