Ich bin mehr oder weniger erfolgreich dran, DDNS auf meinem Debian Server zu integrieren. Hier mal meine Configfiles:
/etc/bind/named.conf:
Code: Alles auswählen
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
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";
};
controls {
inet 127.0.0.1 allow { localhost; } keys { "rndc-key"; };
};
Code: Alles auswählen
;
; Host to address mapping for blabla.lan
;
$TTL 3h
@ IN SOA ns.blabla.lan. root (
2006090281 ; serial
3600 ; refresh (1 hour)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
86400 ; negative caching TTL (1 day)
)
; Nameservers
IN NS ns.blabla.lan.
ns.blabla.lan. IN CNAME mes0do.blabla.lan.
mes0do IN A 10.13.37.1
Code: Alles auswählen
;
; Host to address mapping for lan.sarnox.ch
;
$TTL 3h
@ IN SOA ns.blabla.lan. root (
2006090281 ; serial
3600 ; refresh (1 hour)
1800 ; retry (30 minutes)
604800 ; expire (1 week)
86400 ; negative caching TTL (1 day)
)
; Nameservers
IN NS ns.blabla.lan.
1 IN PTR mes0do.blabla.lan.
Code: Alles auswählen
option domain-name "blabla.lan";
option domain-name-servers 10.13.37.1;
option routers 10.13.37.1;
option subnet-mask 255.255.255.0;
default-lease-time 86400;
max-lease-time 604800;
include "/etc/bind/rndc.key";
zone blabla.lan. {
primary 127.0.0.1;
key "rndc-key";
}
ddns-update-style interim;
ignore client-updates;
subnet 10.13.37.0 netmask 255.255.255.0 {
range 10.13.37.11 10.13.37.50;
option domain-name-servers 10.13.37.1;
option domain-name "blabla.lan";
option routers 10.13.37.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.13.37.255;
default-lease-time 86400;
max-lease-time 604800;
zone 37.13.10.in-addr.arpa. {
primary 10.13.37.1;
key "rndc-key";
}
zone blabla.lan. {
primary 10.13.37.1;
key "rndc-key";
}
}
Code: Alles auswählen
key "rndc-key" {
algorithm hmac-md5;
secret "asdhfkashdfkhasdkhfjkdhfjash";
};
Nun gibt es mir im /var/log/syslog folgende Fehlermeldungen:
Code: Alles auswählen
Mar 2 08:30:02 mes0do named[6462]: client 10.13.37.1#32908: updating zone 'blabla.lan/IN': adding an RR
Mar 2 08:30:02 mes0do named[6462]: client 10.13.37.1#32908: updating zone 'blabla.lan/IN': adding an RR
Mar 2 08:30:02 mes0do named[6462]: /etc/bind/db.blabla.lan.jnl: journal format not recognized
Mar 2 08:30:02 mes0do named[6462]: client 10.13.37.1#32908: updating zone 'blabla.lan/IN': error: journal open failed: unexpected error
Mar 2 08:30:02 mes0do dhcpd: Unable to add forward map from mel2do.blabla.lan to 10.13.37.50: timed out