DHCP+DDNS Fehlermeldung! "bad DNS key"

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
Sallos
Beiträge: 28
Registriert: 10.02.2007 20:57:44

DHCP+DDNS Fehlermeldung! "bad DNS key"

Beitrag von Sallos » 10.02.2007 21:05:50

Tach ich hab dhcp und ddns installiert und konfiguriert nur leider bekomme ich immer eine Fehlermeldung imsyslog:

Code: Alles auswählen

GSG-Server named[1029]: client 192.168.3.10#1027: request has invalid signature: tsig verify failure
Unable to add forward map from LarsNB.gsg.lan to 192.168.3.199: bad DNS key
GSG-Server dhcpd: DHCPREQUEST for 192.168.3.199 from 00:0a:e4:a0:51:ef (LarsNB) via eth0
GSG-Server dhcpd: DHCPACK on 192.168.3.199 to 00:0a:e4:a0:51:ef (LarsNB) via eth0

dhcp.conf

Code: Alles auswählen

server-identifier GSG-Server.gsg.lan;
authoritative;
ddns-update-style interim;

key mykey {
algorithm hmac-md5; 
secret 85ARv+uPzLB3DyAImpGerA==;
};

zone gsg.lan. {
primary 192.168.3.10;
key mykey;
}

zone 3.168.192.in-addr.arpa. {
primary 192.168.3.10;
key mykey;
}

subnet 192.168.3.0 netmask 255.255.255.0 {
#option routers 192.168.1.1;
option subnet-mask 255.255.255.0;
range 192.168.3.100 192.168.3.200;
option broadcast-address 192.168.3.255;
option domain-name "gsg.lan";
one-lease-per-client on;
default-lease-time 14400;
max-lease-time 14401;
option ip-forwarding off;
option time-offset -18000;
option domain-name-servers 192.168.3.10;
} 

named.conf

Code: Alles auswählen

// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the 
// structure of BIND configuration files in Debian, *BEFORE* you customize 
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local

include "/etc/bind/named.conf.options";


key mykey {
algorithm hmac-md5;
secret 85ARv+uPzLB3DyAImpGerA==;
};



// 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";
};



zone "gsg.lan" {
type master;
file "/var/cache/bind/gsg.zone";
allow-update { key mykey; };
};

zone "3.168.192.in-addr.arpa" {
type master;
file "/var/cache/bind/3.168.192.zone";
allow-update { key mykey; };
};

// zone "com" { type delegation-only; };
// zone "net" { type delegation-only; };

// From the release notes:
//  Because many of our users are uncomfortable receiving undelegated answers
//  from root or top level domains, other than a few for whom that behaviour
//  has been trusted and expected for quite some length of time, we have now
//  introduced the "root-delegations-only" feature which applies delegation-only
//  logic to all top level domains, and to the root domain.  An exception list
//  should be specified, including "MUSEUM" and "DE", and any other top level
//  domains from whom undelegated responses are expected and trusted.
// root-delegation-only exclude { "DE"; "MUSEUM"; };

include "/etc/bind/named.conf.local";


kann mir da wer helfen was ich falsch gemacht habe?


mfg


Lars

Benutzeravatar
herrchen
Beiträge: 3257
Registriert: 15.08.2005 20:45:28
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Berlin

Re: DHCP+DDNS Fehlermeldung! "bad DNS key"

Beitrag von herrchen » 10.02.2007 21:26:14

Sallos hat geschrieben:

Code: Alles auswählen

GSG-Server named[1029]: client 192.168.3.10#1027: request has invalid signature: tsig verify failure
Unable to add forward map from LarsNB.gsg.lan to 192.168.3.199: bad DNS key
beide dienste laufen auf einem host?
mach doch mal in der "dhcpd.conf" in den beiden zonen aus "primary 192.168.3.10; " ein "primary 127.0.0.1;"

herrchen

Sallos
Beiträge: 28
Registriert: 10.02.2007 20:57:44

Beitrag von Sallos » 11.02.2007 00:02:30

Mh geht nicht?!

Code: Alles auswählen

GSG-Server named[1029]: invalid command from 127.0.0.1#1029: bad auth
GSG-Server dhcpd: Internet Systems Consortium DHCP Server V3.0.1
GSG-Server dhcpd: Copyright 2004 Internet Systems Consortium.
GSG-Server dhcpd: All rights reserved.
GSG-Server dhcpd: For info, please visit http://www.isc.org/sw/dhcp/
GSG-Server dhcpd: Wrote 1 leases to leases file.
GSG-Server kernel: eth0: link down
GSG-Server kernel: eth0: link up, 10Mbps, half-duplex, lpa 0x0000
GSG-Server named[1029]: client 127.0.0.1#1027: request has invalid signature: tsig verify failure
GSG-Server dhcpd: Unable to add forward map from LarsNB.gsg.lan to 192.168.3.199: bad DNS key
GSG-Server dhcpd: DHCPREQUEST for 192.168.3.199 from 00:0a:e4:a0:51:ef (LarsNB) via eth0
GSG-Server dhcpd: DHCPACK on 192.168.3.199 to 00:0a:e4:a0:51:ef (LarsNB) via eth0

Sallos
Beiträge: 28
Registriert: 10.02.2007 20:57:44

Beitrag von Sallos » 11.02.2007 19:45:44

mh jetzt hab ich den weckbekommen und bekomme den fehler:

Code: Alles auswählen

Jan  6 01:54:06 GSG-Server named[1677]: loading configuration from '/etc/bind/named.conf'
Jan  6 01:54:06 GSG-Server named[1677]: no IPv6 interfaces found
Jan  6 01:54:06 GSG-Server named[1677]: listening on IPv4 interface lo, 127.0.0.1#53
Jan  6 01:54:06 GSG-Server named[1677]: listening on IPv4 interface eth0, 192.168.3.10#53
Jan  6 01:54:06 GSG-Server named[1677]: command channel listening on 127.0.0.1#953
Jan  6 01:54:06 GSG-Server named[1677]: zone 0.in-addr.arpa/IN: loaded serial 1
Jan  6 01:54:06 GSG-Server named[1677]: zone 127.in-addr.arpa/IN: loaded serial 1
Jan  6 01:54:06 GSG-Server named[1677]: zone 3.168.192.in-addr.arpa/IN: loading master file /var/cache/bind/3.168.192.zone: file not found
Jan  6 01:54:06 GSG-Server named[1677]: zone 255.in-addr.arpa/IN: loaded serial 1
Jan  6 01:54:06 GSG-Server named[1677]: zone gsg.lan/IN: loading master file /var/cache/bind/gsg.zone: file not found
Jan  6 01:54:06 GSG-Server named[1677]: zone localhost/IN: loaded serial 1
Jan  6 01:54:06 GSG-Server named[1677]: running

und beim ip vertreilen denn:

Code: Alles auswählen

Jan  6 01:57:05 GSG-Server dhcpd: Unable to add forward map from LarsNB.gsg.lan to 192.168.3.199: timed out
Jan  6 01:57:05 GSG-Server dhcpd: DHCPREQUEST for 192.168.3.199 from 00:0a:e4:a0:51:ef (LarsNB) via eth0
Jan  6 01:57:05 GSG-Server dhcpd: DHCPACK on 192.168.3.199 to 00:0a:e4:a0:51:ef (LarsNB) via eth0

Hat jemand ne idee

Benutzeravatar
herrchen
Beiträge: 3257
Registriert: 15.08.2005 20:45:28
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Berlin

Beitrag von herrchen » 12.02.2007 03:16:49

Sallos hat geschrieben:

Code: Alles auswählen

[...]
Jan  6 01:54:06 GSG-Server named[1677]: zone 3.168.192.in-addr.arpa/IN: loading master file /var/cache/bind/3.168.192.zone: file not found
[...]
Jan  6 01:54:06 GSG-Server named[1677]: zone gsg.lan/IN: loading master file /var/cache/bind/gsg.zone: file not found
diese pfade hast du in der "named.conf" angegeben. liegen die dateien denn dort?

herrchen

Antworten