DDNS & DHCP
Giuseppe Greco
giuseppe.greco at agamura.com
Mon Dec 27 20:53:28 UTC 2004
Hi all,
I'm trying to configure DHCP to make it update DNS records whenever
a new IP address is assigned... but no way to get it working!
1. As root, I've created the key to be used between named and dhcpd
for dynamic DNS updates:
dnssec-keygen -a HMAC-MD5 -b 512 -n HOST dhcp-updater
2. Then, I've modified /etc/dhcpd.conf as following:
...
allow client-updates;
ddns-updates on;
ddns-domainname "agamura.com.";
ddns-rev-domainname "in-addr.arpa.";
ddns-update-style interim;
key dhcp_updater {
algorithm hmac-md5;
secret "GC2kwEdJxhMol2e...;
};
zone agamura.com. {
primary 192.168.1.1;
key dhcp_updater;
}
zone 1.168.192.in-addr.arpa. {
primary 192.168.1.1;
key dhcp_updater;
}
...
3. and /etc/named.conf as following:
...
acl "home" { 192.168.1.0/24; 127.0.0.1; };
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
allow-query { "home"; };
forwarders { 195.186.1.111; 195.186.4.111; };
};
...
key dhcp_updater {
algorithm hmac-md5;
secret "GC2kwEdJxhMol2e...;
};
zone "1.168.192.in-addr.arpa" {
type master;
file "1.168.192.in-addr.arpa.zone";
notify yes;
allow-update { key dhcp_updater; };
};
zone "agamura.com" {
type master;
file "agamura.com.zone";
notify yes;
allow-update { key dhcp_updater; };
};
4. Finally, I've restarted named and dhcpd.
That is it! Am I missing something important to get this
stuff working (I'm running FC3)?
Thanks for your help,
j3d.
--
----------------------------------------
Giuseppe Greco
::agamura::
phone: +41 (0)91 604 67 65
mobile: +41 (0)79 602 99 27
email: giuseppe.greco at agamura.com
web: www.agamura.com
----------------------------------------
More information about the fedora-list
mailing list