WingMan81
02.10.07, 15:12
Hallo,
sitze jetzt schon seit zwei Tagen dabei und versuche einen DNS Sever (bind9) mit DHCP3 auf einem Debian etch System ans laufen zu bekommen.
Der DHCP läuft bereits einwandfrei, allerdings möchte ich gerne das die vergebenen Adressen mit in die Zonen-Dateien eingetragen werden.
Allerdings habe ich doch ein "paar" Probleme dabei :ugly:
Wenn ich mit einem Win-XP-Client eine IP vom Server hole:
Syslog
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPDISCOVER from 00:13:77:03:06:14 via eth0
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPOFFER on 192.168.99.70 to 00:13:77:03:06:14 (sam_x25) via eth0
Oct 2 15:52:36 rit-dhcp named[1643]: zone ritex/IN: sam_x25.ritex/A: bad owner name (check-names)
Oct 2 15:52:36 rit-dhcp dhcpd: if sam_x25.ritex IN A rrset doesn't exist add sam_x25.ritex 300 IN A 192.168.99.70: timed out.
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPREQUEST for 192.168.99.70 (192.168.99.220) from 00:13:77:03:06:14 (sam_x25) via eth0
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPACK on 192.168.99.70 to 00:13:77:03:06:14 (sam_x25) via eth0
Daran wohl das interessant dürfte doch wohl das "timed out" sein, oder?
Meine Config Files:
/etc/bind/named.conf
include "/etc/bind/named.conf.options";
zone "." in {
type hint;
file "db.root";
};
zone "localhost" in {
type master;
file "db.local";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
include "/etc/bind/rndc-access.conf";
include "/etc/bind/named.conf.local";
/etc/bind/named.conf.options
acl "dhcp-clients" {
192.168.99.0/24;
127.0.0.1;
};
options {
directory "/var/cache/bind";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
allow-transfer { "dhcp-clients"; };
allow-query { "dhcp-clients"; };
forwarders {
192.168.99.254;
134.95.129.23;
194.25.2.129;
194.8.194.60;
};
forward first;
listen-on-v6 { any; };
notify no;
};
/etc/bind/rndc-access.conf
controls {
inet 127.0.0.1 allow {
127.0.0.0/8;
} keys { rndc-key; };
inet 192.168.99.220 allow {
127.0.0.0/8;
192.168.99.0/24;
} keys {rndc-key; };
};
/etc/bind/named.conf.local
zone "ritex" IN {
type master;
file "ritex.hosts";
allow-update {
"dhcp-clients";
};
};
zone "99.168.192.in-addr.arpa" IN {
type master;
file "192.168.99.rev";
allow-update {
key "dhcp-clients";
};
};
more /etc/dhcp3/dhcpd.conf
authoritative;
ddns-update-style ad-hoc;
ddns-updates on;
ddns-domainname "ritex";
allow client-updates;
update-static-leases true;
option domain-name "ritex";
option domain-name-servers 192.168.99.220;
server-identifier 192.168.99.220;
option broadcast-address 192.168.99.255;
option routers 192.168.99.254;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.99.0 netmask 255.255.255.0 {
range 192.168.99.50 192.168.99.70;
allow client-updates;
}
So und dann noch die Zonen:
/var/cache/bind/ritex.hosts
$ORIGIN .
$TTL 86400 ; 1 day
ritex IN SOA ritex. root.localhost. (
2007100704 ; serial
86400 ; refresh (1 day)
7200 ; retry (2 hours)
604800 ; expire (1 week)
172800 ; minimum (2 days)
)
NS rit-dhcp.ritex.
$ORIGIN ritex.
$TTL 300 ; 5 minutes
$TTL 86400 ; 1 day
rit-dhcp A 192.168.99.220
rit-dom0 A 192.168.99.200
rit-smb A 192.168.99.222
/var/cache/bind/192.168.99.rev
$ORIGIN .
$TTL 86400 ; 1 day
99.168.192.in-addr.arpa IN SOA rit-dhcp.ritex. root.localhost. (
2007100201 ; serial
86400 ; refresh (1 day)
7200 ; retry (2 hours)
604800 ; expire (1 week)
172800 ; minimum (2 days)
)
NS rit-dhcp.ritex.
$ORIGIN 99.168.192.in-addr.arpa.
$TTL 300 ; 5 minutes
$TTL 86400 ; 1 day
220 PTR rit-dhcp.
PTR rit-dhcp.ritex.
222 PTR rit-smb.
PTR rit-smb.ritex.
200 PTR rit-dom0.
PTR rit-dom0.ritex.
Dachte zuerst das er evtl. keine Berechtigungen hat um die Zonen zu aktualisieren, daher habe ich sie auf 0777 hoch gesetzt. Ohne Erfolg.
Werfe das Ding bald gegen die Wand :D
Wäre extrem dankbar für jede Art von Hilfe!
Schöne Grüße
WingMan81!
sitze jetzt schon seit zwei Tagen dabei und versuche einen DNS Sever (bind9) mit DHCP3 auf einem Debian etch System ans laufen zu bekommen.
Der DHCP läuft bereits einwandfrei, allerdings möchte ich gerne das die vergebenen Adressen mit in die Zonen-Dateien eingetragen werden.
Allerdings habe ich doch ein "paar" Probleme dabei :ugly:
Wenn ich mit einem Win-XP-Client eine IP vom Server hole:
Syslog
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPDISCOVER from 00:13:77:03:06:14 via eth0
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPOFFER on 192.168.99.70 to 00:13:77:03:06:14 (sam_x25) via eth0
Oct 2 15:52:36 rit-dhcp named[1643]: zone ritex/IN: sam_x25.ritex/A: bad owner name (check-names)
Oct 2 15:52:36 rit-dhcp dhcpd: if sam_x25.ritex IN A rrset doesn't exist add sam_x25.ritex 300 IN A 192.168.99.70: timed out.
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPREQUEST for 192.168.99.70 (192.168.99.220) from 00:13:77:03:06:14 (sam_x25) via eth0
Oct 2 15:52:36 rit-dhcp dhcpd: DHCPACK on 192.168.99.70 to 00:13:77:03:06:14 (sam_x25) via eth0
Daran wohl das interessant dürfte doch wohl das "timed out" sein, oder?
Meine Config Files:
/etc/bind/named.conf
include "/etc/bind/named.conf.options";
zone "." in {
type hint;
file "db.root";
};
zone "localhost" in {
type master;
file "db.local";
};
zone "0.0.127.in-addr.arpa" in {
type master;
file "127.0.0.zone";
};
include "/etc/bind/rndc-access.conf";
include "/etc/bind/named.conf.local";
/etc/bind/named.conf.options
acl "dhcp-clients" {
192.168.99.0/24;
127.0.0.1;
};
options {
directory "/var/cache/bind";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
allow-transfer { "dhcp-clients"; };
allow-query { "dhcp-clients"; };
forwarders {
192.168.99.254;
134.95.129.23;
194.25.2.129;
194.8.194.60;
};
forward first;
listen-on-v6 { any; };
notify no;
};
/etc/bind/rndc-access.conf
controls {
inet 127.0.0.1 allow {
127.0.0.0/8;
} keys { rndc-key; };
inet 192.168.99.220 allow {
127.0.0.0/8;
192.168.99.0/24;
} keys {rndc-key; };
};
/etc/bind/named.conf.local
zone "ritex" IN {
type master;
file "ritex.hosts";
allow-update {
"dhcp-clients";
};
};
zone "99.168.192.in-addr.arpa" IN {
type master;
file "192.168.99.rev";
allow-update {
key "dhcp-clients";
};
};
more /etc/dhcp3/dhcpd.conf
authoritative;
ddns-update-style ad-hoc;
ddns-updates on;
ddns-domainname "ritex";
allow client-updates;
update-static-leases true;
option domain-name "ritex";
option domain-name-servers 192.168.99.220;
server-identifier 192.168.99.220;
option broadcast-address 192.168.99.255;
option routers 192.168.99.254;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.99.0 netmask 255.255.255.0 {
range 192.168.99.50 192.168.99.70;
allow client-updates;
}
So und dann noch die Zonen:
/var/cache/bind/ritex.hosts
$ORIGIN .
$TTL 86400 ; 1 day
ritex IN SOA ritex. root.localhost. (
2007100704 ; serial
86400 ; refresh (1 day)
7200 ; retry (2 hours)
604800 ; expire (1 week)
172800 ; minimum (2 days)
)
NS rit-dhcp.ritex.
$ORIGIN ritex.
$TTL 300 ; 5 minutes
$TTL 86400 ; 1 day
rit-dhcp A 192.168.99.220
rit-dom0 A 192.168.99.200
rit-smb A 192.168.99.222
/var/cache/bind/192.168.99.rev
$ORIGIN .
$TTL 86400 ; 1 day
99.168.192.in-addr.arpa IN SOA rit-dhcp.ritex. root.localhost. (
2007100201 ; serial
86400 ; refresh (1 day)
7200 ; retry (2 hours)
604800 ; expire (1 week)
172800 ; minimum (2 days)
)
NS rit-dhcp.ritex.
$ORIGIN 99.168.192.in-addr.arpa.
$TTL 300 ; 5 minutes
$TTL 86400 ; 1 day
220 PTR rit-dhcp.
PTR rit-dhcp.ritex.
222 PTR rit-smb.
PTR rit-smb.ritex.
200 PTR rit-dom0.
PTR rit-dom0.ritex.
Dachte zuerst das er evtl. keine Berechtigungen hat um die Zonen zu aktualisieren, daher habe ich sie auf 0777 hoch gesetzt. Ohne Erfolg.
Werfe das Ding bald gegen die Wand :D
Wäre extrem dankbar für jede Art von Hilfe!
Schöne Grüße
WingMan81!