* DHCP hosts to DNS records
@ 2011-11-07 13:24 Petri Rosenström
0 siblings, 0 replies; only message in thread
From: Petri Rosenström @ 2011-11-07 13:24 UTC (permalink / raw)
To: bloat-devel
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
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
[-- Attachment #2: dnsmasq_net6.sh --]
[-- Type: application/x-sh, Size: 2518 bytes --]
[-- Attachment #3: named_init.patch --]
[-- Type: text/x-patch, Size: 393 bytes --]
diff --git a/etc/init.d/named b/etc/init.d/named
index 046e0cd..220a9f0 100755
--- a/etc/init.d/named
+++ b/etc/init.d/named
@@ -9,6 +9,8 @@ CHRT=/etc/chroot/bind/
pid_file=$CHRT/var/run/named/named.pid
start() {
+ mkdir -p /var/run/named
+ ln -s /etc/chroot/bind/var/run/named/session.key /var/run/named/session.key
echo Kicking isc-bind in xinetd
/usr/sbin/named.montime &
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-07 13:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-07 13:24 DHCP hosts to DNS records Petri Rosenström
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox