suse9 DHCP->DNS unable to add forward map

Post Reply
Message
Author
Jens Götze

suse9 DHCP->DNS unable to add forward map

#1 Post by Jens Götze »

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 <img src="http://www.pl-forum.de/UltraBoard/Images/Sad.gif" border="0" align="middle">

Wenn ich den dhcp im chroot-jail oder als anderer Benutzer starte bringt das keine Änderung

Kann jemand was damit anfangen???

Danke, Gruß Jens

S. Pfeffer

Re: suse9 DHCP->DNS unable to add forward map

#2 Post by S. Pfeffer »

Fehlt nicht noch in der dhcpd.conf eine Zeile "ddns-update-style"? Da gibts ja verschiedene Möglichkeiten, meiner läuft mit "ddns-update-style ad-hoc"

Gruß

Jens Götze

Re: suse9 DHCP->DNS unable to add forward map

#3 Post by Jens Götze »

Hallo und Danke erstmal...

bei mir steht ddns-style interim; (ist auch zu sehen <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">)

AFAIK wurde ad-hoc bis Version 3.0b2pl11 verwendet und ist dann ersetzt worden durch interim.
ad-hoc wird aber offenbar noch unterstützt bringt aber das gleiche Ergebnis.

Feb 27 10:01:25 schuplix dhcpd: DHCPDISCOVER from 00:10:22:fd:99:9f (t099) via eth0
Feb 27 10:01:25 schuplix dhcpd: Ping timeout: 1
Feb 27 10:01:26 schuplix dhcpd: DHCPOFFER on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0
Feb 27 10:01:26 schuplix dhcpd: if t099.spedifix.de IN A rrset doesn't exist add t099.spedifix.de 43200 IN A 192.168.1.250: timed out.
Feb 27 10:01:26 schuplix dhcpd: DHCPREQUEST for 192.168.1.250 (192.168.1.254) from 00:10:22:fd:99:9f (t099) via eth0
Feb 27 10:01:26 schuplix dhcpd: DHCPACK on 192.168.1.250 to 00:10:22:fd:99:9f (t099) via eth0


Gruss Jens

Post Reply