From: root Date: Sun, 1 Apr 2007 12:59:11 +0000 (+0200) Subject: Fix reverse DHCP automagic. X-Git-Url: https://git.sesse.net/?p=nms;a=commitdiff_plain;h=65e3e5f3e85749a3afa7ddf82516a026882140c0 Fix reverse DHCP automagic. --- diff --git a/config/make-dhcpd.pl b/config/make-dhcpd.pl index c78b9f5..96bd1d3 100755 --- a/config/make-dhcpd.pl +++ b/config/make-dhcpd.pl @@ -43,7 +43,7 @@ subnet 87.76.254.0 netmask 255.255.255.0 { subnet 87.76.255.0 netmask 255.255.255.0 { } -zone 0.194.in-addr.arpa. { +zone 76.87.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; } diff --git a/config/make-named.pl b/config/make-named.pl index e7fca4a..c2c1433 100755 --- a/config/make-named.pl +++ b/config/make-named.pl @@ -60,6 +60,11 @@ zone "255.76.87.in-addr.arpa" { allow-transfer { 87.76.255.2; 193.0.0.0/22; }; }; +key DHCP_UPDATER { + algorithm HMAC-MD5.SIG-ALG.REG.INT; + secret F388UOhaIIKHRH9TDE5PTA==; +}; + zone "76.87.in-addr.arpa" { type master; allow-update { key DHCP_UPDATER; }; @@ -68,11 +73,6 @@ zone "76.87.in-addr.arpa" { allow-transfer { 194.19.3.20; 87.76.255.2; 193.0.0.0/22; }; }; -key DHCP_UPDATER { - algorithm HMAC-MD5.SIG-ALG.REG.INT; - secret F388UOhaIIKHRH9TDE5PTA==; -}; - EOF for my $net (@nets) {