DDNS setup

Dan Egli dan at shortcircuit.dyndns.org
Mon Sep 22 21:32:04 UTC 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'm trying to setup DDNS updates. However, despite following some
exapmples I've seen on the net, machines that get an address from the
DHCP server don't get added to the DNS. What am I doing wrong?

Here's the files in question:

/etc/dhclient.conf (from machine getting the IP)
send host-name "breakme.shortcircuit.dyndns.org";
send dhcp-client-identifier 44:a2:a0:24:21:87:9c;
send dhcp-lease-time 3600;
supersede domain-name "shortcircuit.dyndns.org";
supersede host-name "breakme"
request subnet-mask, broadcast-address, time-offset, routers,
	domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
timeout 60;
retry 60;
reboot 10;
select-timeout 5;
initial-interval 2;
script "/sbin/dhclient-script";
media "-link0 -link1 -link2", "link0 link1";
key shortcircuit {
~  algorithm HMAC-MD5;
~   secret "BlaBlaBlaBlaBlaBlaBlaBlaBla=";
};


zone shortcircuit.dyndns.org {
~   primary 192.168.0.1;
~   key shortciruit;
};


/etc/named.conf (from server)
// generated by named-bootconf.pl

options {
	directory "/var/named";
	/*
	 * If there is a firewall between you and nameservers you want
	 * to talk to, you might need to uncomment the query-source
	 * directive below.  Previous versions of BIND always asked
	 * questions using port 53, but BIND 8.1 uses an unprivileged
	 * port by default.
	 */
	// query-source address * port 53;
};

controls {
	inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};


key shortcircuit {
~  algorithm HMAC-MD5;
~   secret "BlaBlaBlaBlaBlaBlaBlaBlaBla=";
};

zone "." IN {
	type hint;
	file "named.ca";
};

zone "localhost" IN {
	type master;
	file "localhost.zone";
	allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
	type master;
	file "named.local";
	allow-update { none; };
};

zone "shortcircuit.dyndns.org" IN {
	type master;
	file "shortcircuit.zone";
	update-policy {
~           grant shortcircuit
~                 subdomain shortcircuit.dyndns.org.;
~ };

};


include "/etc/rndc.key";


/etc/dhcpd.conf (from server)

option netbios-name-servers 192.168.0.1;
option netbios-dd-server 192.168.0.1;
# option netbios-node-type 8;
option domain-name "shortcircuit.dyndns.org";
default-lease-time 2400;
option domain-name-servers 192.168.0.1;
# server-identifier leviathan;
ddns-update-style interim;

key shortcircuit {
~  algorithm HMAC-MD5;
~   secret "BlaBlaBlaBlaBlaBlaBlaBlaBla=";
}


zone shortcircuit.dyndns.org {
~   primary 192.168.0.1;
~   key shortcircuit;
}

max-lease-time 7200;
~    ddns-updates on;
~    option routers 192.168.0.1;
~    option broadcast-address 192.168.0.255;
~    option subnet-mask 255.255.255.0;
~    allow unknown-clients;


authoritative;
~  subnet 192.168.0.0 netmask 255.255.255.0 {
~   range 192.168.0.10 192.168.0.20;

}

subnet 12.210.171.0 netmask 255.255.255.240 {
}


The client gets IP addresses from the server easily, but they don't show
up in the zone file. Any advice is most welcome.

Thanks!
- --- Dan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQE/b2pUxQEzeXtVwzoRAn8JAKCSK4xkrltFlb08xcgPKXaTjosKbACgzTQx
xq9mm16yWYXjmTQ4VtKCsGU=
=QK6u
-----END PGP SIGNATURE-----




More information about the bind-users mailing list