WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   problem mit dns (http://www.wcm.at/forum/showthread.php?t=63609)

teotmb 20.07.2002 18:42

problem mit dns
 
hallo miteinander,

hab folgendes problem mit dns:
================================================== ===================
computer2:/var/log # nslookup computer2
Server: computer2.linnet
Address: 192.168.1.3

*** computer2.linnet can't find computer2: Server failed
================================================== ===================

Auszug aus der logdatei:
================================================== ===================
linnet.zone:10: Priority error near (computer2)
master zone "linnet" (IN) rejected due to errors (serial 2002071100)
================================================== ===================

die named.conf sieht folgendermaßen aus:
================================================== ===================
options {
directory "/var/named";
# statistics-interval 0;
notify no;
};

zone "linnet" in {
type master;
file "linnet.zone";
};

zone "1.168.192.in-addr.arpa" in {
type master;
file "192.168.1.zone";
};

zone "localhost" in {
type master;
file "localhost.zone";
};

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

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

die linnet.zone und 192.168.1.zone sehen folgendermaßen aus:
================================================== ===================
$TTL 2D
linnet. IN SOA computer2.linnet. root.linnet. (
2002071100 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

IN NS computer2
IN MX computer2

localhost IN A 127.0.0.1
computer0 IN A 192.168.1.1
computer1 IN A 192.168.1.2
computer2 IN A 192.168.1.3

bzw.

$TTL 2D
1.168.192.in-addr.arpa. IN SOA computer2.linnet. root.linnet. (
2002071100 ; serial
1D ; refresh
2H ; retry
1W ; expiry
2D ) ; minimum

IN NS computer2.linnet.

1 IN PTR computer0.linnet.
2 IN PTR computer1.linnet.
3 IN PTR computer2.linnet.
================================================== ===================

die resolv.conf hat dann noch folgende einträge
================================================== ===================
nameserver 192.168.1.3
nameserver 127.0.0.1
search linnet
================================================== ===================

hab mir zwar schon einige threads/links/handbuch zu dem thema angeschaut, bin aber immer noch nicht schlauer.

bitte um hilfe.

mfg,

teotmb

valo 20.07.2002 21:54

naja, also die error meldung sagt, er nimmt dir die zone "linnet" nicht
Code:

linnet.zone:10: Priority error near (computer2)
master zone "linnet" (IN) rejected due to errors (serial 2002071100)

also ist der fehler dort zu suchen.

so...

mal anschaun...

ich glaub ich habs :p :D

[edit] zu früh abgeschickt, wird nachgereicht *ausprobier*

valo 20.07.2002 22:06

so, kurzer auszug aus dem handbuch :)

du hast den fehler beim MX eintrag

6.3.2. Discussion of MX Records

As described above, domain servers store information as a series of resource records, each of which contains a particular piece of information about a given domain name (which is usually, but not always, a host). The simplest way to think of a RR is as a typed pair of data, a domain name matched with a relevant datum, and stored with some additional type information to help systems determine when the RR is relevant.

MX records are used to control delivery of email. The data specified in the record is a priority and a domain name. The priority controls the order in which email delivery is attempted, with the lowest number first. If two priorities are the same, a server is chosen randomly. If no servers at a given priority are responding, the mail transport agent will fall back to the next largest priority. Priority numbers do not have any absolute meaning — they are relevant only respective to other MX records for that domain name. The domain name given is the machine to which the mail will be delivered. It must have an associated A record — CNAME is not sufficient.

For a given domain, if there is both a CNAME record and an MX record, the MX record is in error, and will be ignored. Instead, the mail will be delivered to the server specified in the MX record pointed to by the CNAME.
Code:

example.com.  IN  MX  10  mail.example.com.
              IN  MX  10  mail2.example.com.
              IN  MX  20  mail.backup.org.


mail.example.com. IN A 10.0.0.1
mail2.example.com. IN A 10.0.0.2

For example:

Mail delivery will be attempted to mail.example.com and mail2.example.com (in any order), and if neither of those succeed, delivery to mail.backup.org will be attempted.


also füge in der zeile

IN MX computer2

irgendeine zahl hinzu, und es sollte kein problem mehr geben

sollte dann so ausschauen:

IN MX 10 computer2

teotmb 20.07.2002 23:14

danke, ich glaub ich sollt mir mal eine brille zulegen

mfg,

teotmb

valo 21.07.2002 00:03

Zitat:

Original geschrieben von teotmb
danke, ich glaub ich sollt mir mal eine brille zulegen

mfg,

teotmb

bitte sehr

bei fragen zu ihrer brille hilft sicher der optiker...


Alle Zeitangaben in WEZ +2. Es ist jetzt 22:54 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag