PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : RHES 5 DHCP und DDNS Probleme



Sturm_newbie
12.06.09, 19:37
Ein Hallo an alle,


erstmal möchte ich mich kurz vorstellen,

ich bin 30, Systeminformatiker und der Schwerpunkt liegt im Windowsbereich (bitte nicht schlagen):cool:

Derzeit will ich meine Linux Kenntnisse etwas verbessern, weil es da ja einige Vorteile gibt.

So ich habe mich für eine Red Hat Enterprise Server 5 entschieden.
Ich möchte gern eine DHCP mit DDNS aufsetzen.

Der DHCP läuft und verteilt IP´s an die Clients, aber mein Problem ist der named Service.
Der Service startet und das ganze ohne Fehlermeldungen also gehe ich mal davon aus das an der Config alles ok ist.

Das Problem tritt auf, wenn sich ein Client im DNS eintragen will:

Jun 12 20:28:20 japsrv01 dhcpd: DHCPREQUEST for 172.16.1.254 from 00:0c:29:64:16:1f (japwsd01) via eth0
Jun 12 20:28:20 japsrv01 dhcpd: DHCPACK on 172.16.1.254 to 00:0c:29:64:16:1f (japwsd01) via eth0
Jun 12 20:28:20 japsrv01 named[5844]: client 172.16.0.1#46613: updating zone 'basta.local/IN': update unsuccessful: japwsd01.basta.local: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Jun 12 20:28:20 japsrv01 named[5844]: client 172.16.0.1#38850: updating zone 'basta.local/IN': update unsuccessful: japwsd01.basta.local/TXT: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Jun 12 20:28:20 japsrv01 dhcpd: Forward map from japwsd01.basta.local to 172.16.0.255 FAILED: Has an A record but no DHCID, not mine.
Jun 12 20:28:20 japsrv01 dhcpd: DHCPREQUEST for 172.16.0.255 from 00:0c:29:64:16:29 (japwsd01) via eth0
Jun 12 20:28:20 japsrv01 dhcpd: DHCPACK on 172.16.0.255 to 00:0c:29:64:16:29 (japwsd01) via eth0

zwar mit der Fehlermeldung.

Ich werde hier noch die named.conf und die dhcpd.conf anfügen, die werdet ihr sicher benötigen.

named.conf:

controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { DHCP; };
};

options {
auth-nxdomain yes;
directory "/var/named";
listen-on port 53 { 172.16.0.1; };
listen-on port 953 { 172.16.0.1; };
};

zone "." IN {
type hint;
file "/var/named/named.root";
};

zone "localhost" IN {
type master;
file "/var/named/localhost.hosts";
};

zone "0.0.0.127.in-addr.arpa" IN {
type master;
file "/var/named/127.0.0.0.rev";
};

key DHCP {
algorithm hmac-md5;
secret "QI7FaGtLdarITEJ0rSEbaFlsHKi8XI6KzORm2abQT7sIUQRKp8 36OIkrayT/Eg2ZDqU5IYLRi8EoPto0Jq+Dvg==";
};

zone "basta.local" {
type master;
file "/var/named/basta.local.hosts";
allow-update { key DHCP; };
notify yes;
};

zone "0.16.172.in-addr.arpa" {
type master;
file "/var/named/172.16.0.rev";
allow-update { key DHCP; };
notify yes;
};

dhcp.conf:

ddns-update-style interim;
ddns-domainname "basta.local";

update-static-leases true;

key DHCP {
algorithm HMAC-MD5.SIG-ALG.REG.INT;
secret QI7FaGtLdarITEJ0rSEbaFlsHKi8XI6KzORm2abQT7sIUQRKp8 36OIkrayT/Eg2ZDqU5IYLRi8EoPto0Jq+Dvg==;
}

# basta.local
zone basta.local. {
primary 172.16.0.1;
key DHCP;
}

# 0.16.172.in-addr.apra
zone 0.16.172.in-addr.arpa. {
primary 172.16.0.1;
key DHCP;
}

authoritative;
default-lease-time 600;
max-lease-time 7200;

# admin
subnet 172.16.0.0 netmask 255.255.254.0 {
option domain-name-servers 172.16.0.1;
option broadcast-address 172.16.1.255;
range 172.16.0.10 172.16.1.254;
ddns-updates on;
# JAPSRV01
host japsrv01 {
hardware ethernet 00:0C:29:EF:26:F7;
fixed-address 172.16.0.1;
}

}

Der rndc Service läuft!

Diese Meldung wird ausgegeben, wenn ich nslookup client starte:

;; connection timed out; no servers could be reached


So nun hoffe ich sehr, dass mir jemand einen Tipp geben kann woran das ganze liegt und es dann funktioniert.

Wie gesagt bin neu auf dem Gebiet und lerne gerade also habt Verständnis, sollten sich einige Fehler eingeschlichen haben danke.