PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : bind9 >> domain angelget..



uks
05.08.03, 16:23
folgendes gibt mir "nslookup" zurück wenn ich meine eingerichtete test domain aufrufen möchte..


** server can't find linux.test: NXDOMAIN


an was könnte das liegen?? localhost und 127.0.0.1 werden gefunden, oder andere domains aus dem www auch! bloß die selbst eingerichetten nicht

make
05.08.03, 16:32
Wie wärs wenn du mal deine konfigurationsdateien posten würdest. Hier weis nîemand wie du deinen dns-server konfiguriert hast, also kann auch niemand wissen, was du falsch gemacht hast...

Berufspenner
05.08.03, 16:41
Hi@all

Meine Kristalkugel ist leider wegen übermässiger Strapazierung defekt :D ;) Also, bitte mehr Infos. Hast du schon mal versucht, die IP deines DNS-Servers auf deinem Client als primary DNS einzutragen?

Cu
André

uks
05.08.03, 18:47
Die Datei /etc/named.conf



// Konfigurationsdatei für einen caching-only Nameserver

options {
directory "/var/lib/named";

// Wenn Verbindungen über eine Firewall gehen müssen und das nicht
// so funktioniert, wie es sollte, hilft es vielleicht, die folgende
// Zeile auszukommentieren.

// query-source port 53;
};

zone "." {
type hint;
file "root.hint";
};

zone "0.0.127.in-addr.arpa" {
type master;
file "pz/127.0.0.zone";
};


zone "linux.test" {
notify no;
type master;
file "pz/linux.test.zone";
};


Die Datei /etc/resolv.conf


### BEGIN INFO
#
# Modified_by: ipppd
# Backup: /etc/resolv.conf.saved.by.ipppd.ippp0
# Process: ipppd
# Process_id: 23081 930
# Script: /etc/ppp/ip-up
# Saveto:
# Info: This is a temporary resolv.conf created by service ipppd.
# The previous file has been saved and will be restored later.
#
# If you don't like your resolv.conf to be changed, you
# can set MODIFY_{RESOLV,NAMED}_CONF_DYNAMICALLY=no. This
# variables are placed in /etc/sysconfig/network/config.
#
# You can also configure service ipppd not to modify it.
#
# If you do not like the ipppd to change your nameserver
# settings remove the option MODIFYDNS for this provider
#
### END INFO
search unterdomain.test-domain.de test-domain.de
nameserver 62.104.191.241
nameserver 62.104.196.134


Die Datei /etc/nswitch.conf


#
# /etc/nsswitch.conf
#
# An example Name Service Switch config file. This file should be
# sorted with the most-used services at the beginning.
#
# The entry '[NOTFOUND=return]' means that the search for an
# entry should stop if the search in the previous entry turned
# up nothing. Note that if the search failed due to some other reason
# (like no NIS server responding) then the search continues with the
# next entry.
#
# Legal entries are:
#
# compat Use compatibility setup
# nisplus Use NIS+ (NIS version 3)
# nis Use NIS (NIS version 2), also called YP
# dns Use DNS (Domain Name Service)
# files Use the local files
# db Use the /var/db databases
# [NOTFOUND=return] Stop searching if not found so far
#
# For more information, please read the nsswitch.conf.5 manual page.
#

# passwd: files nis
# shadow: files nis
# group: files nis

passwd: compat ldap
group: compat ldap

hosts: files dns
networks: files dns

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files

bootparams: files
automount: files
aliases: files
shadow: compat


Die Datei /var/lib/named/root.hint
Woher bekomme ich eigentlich für diese Datei immer die aktuellen werte??


;
; Wenn diese Datei bereits existiert, könnten hier
; einführende Kommentare stehen.
; Falls nicht - keine Panik ;-).
;
. 6D IN NS G.ROOT-SERVERS.NET.
. 6D IN NS J.ROOT-SERVERS.NET.
. 6D IN NS K.ROOT-SERVERS.NET.
. 6D IN NS L.ROOT-SERVERS.NET.
. 6D IN NS M.ROOT-SERVERS.NET.
. 6D IN NS A.ROOT-SERVERS.NET.
. 6D IN NS H.ROOT-SERVERS.NET.
. 6D IN NS B.ROOT-SERVERS.NET.
. 6D IN NS C.ROOT-SERVERS.NET.
. 6D IN NS D.ROOT-SERVERS.NET.
. 6D IN NS E.ROOT-SERVERS.NET.
. 6D IN NS I.ROOT-SERVERS.NET.
. 6D IN NS F.ROOT-SERVERS.NET.

G.ROOT-SERVERS.NET. 5w6d16h IN A 192.112.36.4
J.ROOT-SERVERS.NET. 5w6d16h IN A 198.41.0.10
K.ROOT-SERVERS.NET. 5w6d16h IN A 193.0.14.129
L.ROOT-SERVERS.NET. 5w6d16h IN A 198.32.64.12
M.ROOT-SERVERS.NET. 5w6d16h IN A 202.12.27.33
A.ROOT-SERVERS.NET. 5w6d16h IN A 198.41.0.4
H.ROOT-SERVERS.NET. 5w6d16h IN A 128.63.2.53
B.ROOT-SERVERS.NET. 5w6d16h IN A 128.9.0.107
C.ROOT-SERVERS.NET. 5w6d16h IN A 192.33.4.12
D.ROOT-SERVERS.NET. 5w6d16h IN A 128.8.10.90
E.ROOT-SERVERS.NET. 5w6d16h IN A 192.203.230.10
I.ROOT-SERVERS.NET. 5w6d16h IN A 192.36.148.17
F.ROOT-SERVERS.NET. 5w6d16h IN A 192.5.5.241


Die Datei /var/lib/named/pz/127.0.0.zone


$TTL 1W
@ IN SOA localhost. root.localhost. (
42 ; serial (d. adams)
2D ; refresh
4H ; retry
6W ; expiry
1W ) ; minimum

IN NS localhost.
1 IN PTR 127.0.0.1.


Die Datei /var/lib/named/pz/linux.test.zone


$TTL 1w
;
; Zonendatei für linux.test
;
; Die komplette Zonendatei
;
@ IN SOA ns.linux.test. hostmaster.linux.test. (
2003080501 ; Datum + Seriennummer #
8H ; refresh, Sekunden
2H ; retry, Sekunden
1W ; expire, Sekunden
1D ) ; minimum,
;
NS ns ; Rechnername des Nameserver
MX 10 mail.linux.test ; erster Mailserver
MX 20 mail.friend.test. ; zweiter Mailserver
;
localhost A 127.0.0.1
ns A 123.123.123.123
mail A 123.123.123.124


... ich hab das alles nachanleitung von so einem tutorial gemacht.. teils wars auch schon vorhanden!

DerLipper[TuX]
05.08.03, 21:44
erm deine resolv.conf zeigt auf die nameserver deines providers!

trag mal 127.0.0.1 in die resolv.conf ein. Du kannst dann auch per forward declaration die ns deines providers eintragen. Damit das kein stress beim einwählen gibt, müßtest du noch usepeerdns in den ppp optionen auskommentieren.

Gruß,
Marko

Dewitt
05.08.03, 23:25
Original geschrieben von uks
Die Datei /var/lib/named/pz/linux.test.zone


$TTL 1w
;
; Zonendatei für linux.test
;
; Die komplette Zonendatei
;
@ IN SOA ns.linux.test. hostmaster.linux.test. (
2003080501 ; Datum + Seriennummer #
8H ; refresh, Sekunden
2H ; retry, Sekunden
1W ; expire, Sekunden
1D ) ; minimum,
;
NS ns ; Rechnername des Nameserver
MX 10 mail.linux.test ; erster Mailserver
MX 20 mail.friend.test. ; zweiter Mailserver
;
@ A 127.0.0.1
localhost A 127.0.0.1
ns A 123.123.123.123
mail A 123.123.123.124



Dann findet nslookup auch "linux.test".