Einrichtung eines DNS

Post Reply
Message
Author
hilfe
Posts: 4
Joined: 26. Sep 2002 14:50

Einrichtung eines DNS

#1 Post by hilfe »

Hallo!

Ich habe versucht einen DNS- einzurichten, leider ohne Erfolg.

Hoffe Ihr könnt mir helfen.

ich habe samba und dhcp eingerichtet und möchte jetzt auch dns einrichten.
ich benutze redhat 8 mein client ist ein XP - Rechner.

Das Problem: Die Namensauflösung funktioniert NUR teilweise. Anpingen mit dem Hostnamen funktioniert (per IP auch), doch leider gibt er mir bei NSLOOKUP (oder ping -a "IP") den namen nicht aus.

Meine resolv.conf:
nameserver 192.168.9.1

Meine dhcpd.conf:
subnet 192.168.9.0 netmask 255.255.255.0 {
option netbios-name-servers 192.168.9.1;
option netbios-node-type 8;
option domain-name-servers 192.168.9.1;
option domain-name "testdomain";
option broadcast-address 192.168.9.255;
option routers 192.168.9.1;
option subnet-mask 255.255.255.0;
option host-name "hostname";
server-name "servername";
range 192.168.9.1 192.168.9.15;
}
ddns-update-style ad-hoc;

Meine named.conf:

// generated by named-bootconf.pl

options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};

//
// a caching only nameserver config
//
zone "." IN {
type hint;
file "named.ca";
};

zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};

zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};

include "/etc/rndc.key";

controls {
inet 127.0.0.1 port * allow {
localhost;
};
};


---falls Ihr noch mehr Info`s braucht sagt bitte bescheid!

Freue mich über jede Hilfe die ich bekommen kann <img src="http://www.pl-forum.de/UltraBoard/Images/Wilk.gif" border="0" align="middle">
ALSO Danke im voraus!

ChrisPr

Re: Einrichtung eines DNS

#2 Post by ChrisPr »

so wie es aussieht .. hast du eigentlich keinen dns konfiguriert .. bzw keine zone eingetragen .. du musst noch 2 zonen in deiner /etc/named.conf eintragen

zone "deine_local_domain" {
type master;
file "deine_locale_domain";
allow-update { none; };
};

zone "1.168.192.in-addr.arpa" IN {
type master;
file "deine_locale_domain.rev";
allow-update { none; };
};

dann benötigst du ( laut der beiden genannten zonen )
/var/named/deine_locale_domain
/var/named/deine_locale_domain.rev

inhalt dieser beider files sind die Zonenbeschreibungen
siehe dazu

http://www.pl-berichte.de/t_netzwerk/dns.html

grüsse

ChrisPr

sdxxl

Re: Einrichtung eines DNS

#3 Post by sdxxl »

hi,
also für 2 rechner würd ich den dnrd benutzen

grüße
sdxxl

hilfe
Posts: 4
Joined: 26. Sep 2002 14:50

Re: Einrichtung eines DNS

#4 Post by hilfe »

danke euch beiden es funkt jetzt <img src="http://www.pl-forum.de/UltraBoard/Images/Happy.gif" border="0" align="middle">

Post Reply