A
Anonymous
Gast
Hallo,
ich will ein suse9 als dhcp/dns konfigurieren.
Die Dienste laufen beide aber der dhcp ist nicht in der Lage die dns-zone zu aktualisieren.
Hier die Konfiguration:
named.conf
options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
notify no;
};
key DHCP_UPDATER {
algorithm hmac-md5;
secret "Jn+lPAHjoAUFdLZrgOVPX7buoWReeyFYcCjPfH0tUMZnxihh5yKj4xvGR8hBl7Qew4LR6IzHDbXyDJP+B3dkLA==";
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "spedifix.de" in {
type master;
file "dyn/spedifix.de.zone";
allow-update { key DHCP_UPDATER; };
notify no;
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "dyn/1.168.192.zone";
allow-update { key DHCP_UPDATER; };
notify no;
};
dhcpd.conf
authoritative ;
ddns-domainname "spedifix.de";
ddns-update-style interim;
ignore client-updates;
ddns-updates on;
default-lease-time 86400;
log-facility local7;
max-lease-time 259200;
update-static-leases true;
key DHCP_UPDATER {
algorithm hmac-md5;
secret "Jn+lPAHjoAUFdLZrgOVPX7buoWReeyFYcCjPfH0tUMZnxihh5yKj4xvGR8hBl7Qew4LR6IzHDbXyDJP+B3dkLA==";
};
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.254;
option domain-name "spedifix.de";
option domain-name-servers 192.168.1.254;
range 192.168.1.1 192.168.1.250;
zone spedifix.de. { primary 127.0.0.1; key DHCP_UPDATER; }
zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; }
}
sysconfig/dhcpd
DHCPD_INTERFACE="eth0"
DHCPD_RUN_CHROOTED="no"
DHCPD_CONF_INCLUDE_FILES=""
DHCPD_RUN_AS="root"
DHCPD_OTHER_ARGS=""
Die Zonenfiles sind vorhanden, Schreibberechtigung besteht.
Die /etc/host.conf enthält
order hosts, bind
multi on
Die /etc/nsswitch.conf enthält
hosts: files dns
In der /etc/resolv.conf ist
nameserver 127.0.0.1 eingetragen.
Die Fehlermeldung sieht folgendermaßen aus:
Feb 26 11:31:10 schuplix dhcpd: DHCPDISCOVER from 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:10 schuplix dhcpd: Ping timeout: 1
Feb 26 11:31:11 schuplix dhcpd: DHCPOFFER on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:11 schuplix dhcpd: Unable to add forward map from t099.spedifix.de to 192.168.1.250: timed out
Feb 26 11:31:11 schuplix dhcpd: DHCPREQUEST for 192.168.1.250 (192.168.1.254) from 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:11 schuplix dhcpd: DHCPACK on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0
Der Client hat korrekte Einstellungen bekommen. Das Lease wird eingetragen und ist in Ordnung.
Die Zonendatei wird nicht aktualisiert
Wenn ich den dhcp im chroot-jail oder als anderer Benutzer starte bringt das keine Änderung
Kann jemand was damit anfangen???
Danke, Gruß Jens
ich will ein suse9 als dhcp/dns konfigurieren.
Die Dienste laufen beide aber der dhcp ist nicht in der Lage die dns-zone zu aktualisieren.
Hier die Konfiguration:
named.conf
options {
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
notify no;
};
key DHCP_UPDATER {
algorithm hmac-md5;
secret "Jn+lPAHjoAUFdLZrgOVPX7buoWReeyFYcCjPfH0tUMZnxihh5yKj4xvGR8hBl7Qew4LR6IzHDbXyDJP+B3dkLA==";
};
zone "." in {
type hint;
file "root.hint";
};
zone "localhost" in {
type master;
file "localhost.zone";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
zone "spedifix.de" in {
type master;
file "dyn/spedifix.de.zone";
allow-update { key DHCP_UPDATER; };
notify no;
};
zone "1.168.192.in-addr.arpa" in {
type master;
file "dyn/1.168.192.zone";
allow-update { key DHCP_UPDATER; };
notify no;
};
dhcpd.conf
authoritative ;
ddns-domainname "spedifix.de";
ddns-update-style interim;
ignore client-updates;
ddns-updates on;
default-lease-time 86400;
log-facility local7;
max-lease-time 259200;
update-static-leases true;
key DHCP_UPDATER {
algorithm hmac-md5;
secret "Jn+lPAHjoAUFdLZrgOVPX7buoWReeyFYcCjPfH0tUMZnxihh5yKj4xvGR8hBl7Qew4LR6IzHDbXyDJP+B3dkLA==";
};
subnet 192.168.1.0 netmask 255.255.255.0 {
option routers 192.168.1.254;
option domain-name "spedifix.de";
option domain-name-servers 192.168.1.254;
range 192.168.1.1 192.168.1.250;
zone spedifix.de. { primary 127.0.0.1; key DHCP_UPDATER; }
zone 1.168.192.in-addr.arpa. { primary 127.0.0.1; key DHCP_UPDATER; }
}
sysconfig/dhcpd
DHCPD_INTERFACE="eth0"
DHCPD_RUN_CHROOTED="no"
DHCPD_CONF_INCLUDE_FILES=""
DHCPD_RUN_AS="root"
DHCPD_OTHER_ARGS=""
Die Zonenfiles sind vorhanden, Schreibberechtigung besteht.
Die /etc/host.conf enthält
order hosts, bind
multi on
Die /etc/nsswitch.conf enthält
hosts: files dns
In der /etc/resolv.conf ist
nameserver 127.0.0.1 eingetragen.
Die Fehlermeldung sieht folgendermaßen aus:
Feb 26 11:31:10 schuplix dhcpd: DHCPDISCOVER from 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:10 schuplix dhcpd: Ping timeout: 1
Feb 26 11:31:11 schuplix dhcpd: DHCPOFFER on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:11 schuplix dhcpd: Unable to add forward map from t099.spedifix.de to 192.168.1.250: timed out
Feb 26 11:31:11 schuplix dhcpd: DHCPREQUEST for 192.168.1.250 (192.168.1.254) from 00:10:22:fd:99:9f (t099) via eth0
Feb 26 11:31:11 schuplix dhcpd: DHCPACK on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0
Der Client hat korrekte Einstellungen bekommen. Das Lease wird eingetragen und ist in Ordnung.
Die Zonendatei wird nicht aktualisiert
Wenn ich den dhcp im chroot-jail oder als anderer Benutzer starte bringt das keine Änderung
Kann jemand was damit anfangen???
Danke, Gruß Jens