habe einen dhcp3 und bind9 hier seid langer zeit am laufen und alles funzte. Nun wollte ich auf ddns umstellen und es lief auch. Dann aber wollte ich eine eigens zone-file für den ddns-update haben und seid dem steht dies hier in meiner daemon.log:
Code: Alles auswählen
Oct 29 03:42:02 vividos dhcpd: Unable to add forward map from lothian.test.local to 192.168.5.5: not a zone
Oct 29 03:42:02 vividos dhcpd: DHCPREQUEST for 192.168.5.5 from 00:00:e8:99:b8:b1 via eth0
Oct 29 03:42:02 vividos dhcpd: DHCPACK on 192.168.5.5 to 00:00:e8:99:b8:b1 via eth0
Hier mein bind9 ordner:
Code: Alles auswählen
drwxrwxr-x 2 root bind 4.0K Oct 29 04:20 .
drwxr-xr-x 70 root root 4.0K Oct 28 20:29 ..
-rw------- 1 root root 119 Oct 28 15:48 Kdhcp_updater.+157+22246.key
-rw------- 1 root root 145 Oct 28 15:48 Kdhcp_updater.+157+22246.private
-rw-r--r-- 1 root root 237 Jun 18 09:38 db.0
-rw-r--r-- 1 root root 271 Jun 18 09:38 db.127
-rw-r--r-- 1 root root 237 Jun 18 09:38 db.255
-rw------- 1 bind bind 520 Oct 29 03:37 db.5.168.192.in-addr.arpa
-rw------- 1 bind bind 512 Oct 29 03:37 db.test.local
-rw------- 1 bind bind 485 Oct 29 03:41 db.ddns.5.168.192.in-addr.arpa
-rw------- 1 bind bind 487 Oct 29 03:41 db.ddns.test.local
-rw-r--r-- 1 root root 353 Jun 18 09:38 db.empty
-rw-r--r-- 1 root root 256 Jun 18 09:38 db.local
-rw-r--r-- 1 root root 1.5K Jun 18 09:38 db.root
-rw-r--r-- 1 root bind 1.6K Sep 23 17:25 named.conf
-rw-r--r-- 1 root bind 979 Oct 28 20:52 named.conf.local
-rw-r--r-- 1 root bind 867 Oct 28 19:01 named.conf.options
-rw-r--r-- 1 root bind 541 Sep 1 17:03 rndc.confx
-rw-r----- 1 bind bind 77 Sep 1 17:01 rndc.key
-rw-r--r-- 1 root root 1.3K Jun 18 09:38 zones.rfc1918
Hier meine confs:
dhcpd.conf
Code: Alles auswählen
# dhcpd.conf
option domain-name "test.local";
option domain-name-servers vividos.test.local;
option broadcast-address 192.168.5.255;
option routers vividos.test.local;
option netbios-name-servers vividos.test.local;
option ntp-servers vividos.test.local;
option subnet-mask 255.255.255.0;
default-lease-time 1800;
max-lease-time 7200;
subnet 192.168.5.0 netmask 255.255.255.0 {
range 192.168.5.50 192.168.5.200;
}
ddns-updates on;
ddns-update-style interim;
ddns-domainname "test.local";
update-optimization false;
update-static-leases true;
ignore client-updates;
key DHCP_UPDATER {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "**********";
};
zone ddns.test.local. {
primary 192.168.5.1;
key DHCP_UPDATER;
}
zone ddns.5.168.192.in-addr.arpa. {
primary 192.168.5.1;
key DHCP_UPDATER;
}
subnet 192.168.28.0 netmask 255.255.255.0 {
}
host lothian {
hardware ethernet 00:00:E8:99:B8:B1;
fixed-address 192.168.5.5;
}
host mythran {
hardware ethernet 00:E0:98:9A:DF:79;
fixed-address 192.168.5.6;
}
...
Code: Alles auswählen
include "/etc/bind/named.conf.options";
zone "." {
type hint;
file "/etc/bind/db.root";
};
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
Code: Alles auswählen
zone "test.local" {
type master;
file "/etc/bind/db.test.local";
};
zone "ddns.test.local" {
type master;
file "/etc/bind/db.ddns.test.local";
allow-update { key DHCP_UPDATER; };
};
zone "testab.local" {
type slave;
masters { 192.168.10.2; };
file "db.testab.local";
};
zone "5.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.5.168.192.in-addr.arpa";
};
zone "ddns.5.168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.ddns.5.168.192.in-addr.arpa";
allow-update { key DHCP_UPDATER; };
};
zone "10.168.192.in-addr.arpa" {
type slave;
masters { 192.168.10.2; };
file "db.10.168.192.in-addr.arpa";
};
Code: Alles auswählen
options {
directory "/var/cache/bind";
auth-nxdomain no; # conform to RFC1035
version "[fuck you]";
};
key "DHCP_UPDATER" {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret "**********";
};