Historic archive of defunct list bloat-devel@lists.bufferbloat.net
 help / color / mirror / Atom feed
From: "Petri Rosenström" <petri.rosenstrom@gmail.com>
To: bloat-devel@lists.bufferbloat.net
Subject: DHCP hosts to DNS records
Date: Mon, 7 Nov 2011 15:24:55 +0200	[thread overview]
Message-ID: <CAFsUA5_m5x5XWdMFka5A+=ZDDfFPMLeLBw3jDN8X8GyZP0zoxQ@mail.gmail.com> (raw)

[-- 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 &

                 reply	other threads:[~2011-11-07 13:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAFsUA5_m5x5XWdMFka5A+=ZDDfFPMLeLBw3jDN8X8GyZP0zoxQ@mail.gmail.com' \
    --to=petri.rosenstrom@gmail.com \
    --cc=bloat-devel@lists.bufferbloat.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox