• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

DNS Server löst Namen nicht richtig auf!

Hallo!

Ich möchte einen primären DNS Server betreiben. Diesen hatte ich unter SuSE Linux 8.2 schon. Nun habe ich eine neue Linux-Box angeschafft und SuSE Linux 10.0 installiert. Ich habe folgende Symptome:
- mache ich ein nslookup rechner.domain, dann erhalte ich die richtige IP-Adresse zurück
- mache ich nslookup XXX.XXX.XXX.XXX, dann dauert das eine Weile und ich bekomme ";; Server: 192.168.1.1
Address: 192.168.1.1#53

** server can't find 103.1.168.192.in-addr.arpa: SERVFAIL" als Antwort.

Meine /var/log/messages zeigt folgendes:
Feb 5 21:19:30 celdesk named[8081]: starting BIND 9.3.1 -t /var/lib/named -u named
Feb 5 21:19:30 celdesk named[8081]: found 1 CPU, using 1 worker thread
Feb 5 21:19:30 celdesk named[8081]: loading configuration from '/etc/named.conf'
Feb 5 21:19:30 celdesk named[8081]: listening on IPv4 interface lo, 127.0.0.1#53
Feb 5 21:19:30 celdesk named[8081]: listening on IPv4 interface eth0, 192.168.1.1#53
Feb 5 21:19:30 celdesk named[8081]: command channel listening on 127.0.0.1#953
Feb 5 21:19:30 celdesk named[8081]: command channel listening on ::1#953
Feb 5 21:19:30 celdesk named[8081]: zone 0.0.127.in-addr.arpa/IN: loaded serial 42
Feb 5 21:19:30 celdesk named[8081]: dns_rdata_fromtext: master/home.rev:19: near 'babsi_ppc.home.at.': bad name (check-names)
Feb 5 21:19:30 celdesk named[8081]: zone 1.168.192.in-addr.arpa/IN: loading master file master/home.rev: bad name (check-names)
Feb 5 21:19:30 celdesk named[8081]: dns_rdata_fromtext: master/home.at:9: near 'celdesk.home.at.': not a valid number
Feb 5 21:19:30 celdesk named[8081]: zone home.at/IN: loading master file master/home.at: not a valid number
Feb 5 21:19:30 celdesk named[8081]: zone localhost/IN: loaded serial 42
Feb 5 21:19:30 celdesk named[8081]: running


Nun meine Konfigurationsdateien:
/etc/named.conf

### BEGIN INFO
#
# Modified_by: pppd
# Backup: /etc/named.conf.saved.by.pppd.modem0
# Process: pppd
# Process_id: 7662
# Script: /etc/ppp/ip-up
# Saveto:
# Info: This is a temporary named.conf created by service pppd.
# The previous file has been saved and will be restored later.
#
# If you don't like your named.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 pppd not to modify it.
#
# If you do not want the pppd to change your nameserver
# settings set MODIFYDNS=no in the config file for
# this provider in /etc/sysconfig/network/providers/
# and ensure that the option usepeerdns is not set
# in /etc/ppp/options.
#
### END INFO
# Copyright (c) 2001-2004 SuSE Linux AG, Nuernberg, Germany.
# All rights reserved.
#
# Author: Frank Bodammer, Lars Mueller <lmuelle@suse.de>
#
# /etc/named.conf
#
# This is a sample configuration file for the name server BIND 9. It works as
# a caching only name server without modification.
#
# A sample configuration for setting up your own domain can be found in
# /usr/share/doc/packages/bind/sample-config.
#
# A description of all available options can be found in
# /usr/share/doc/packages/bind/misc/options.

options {
forwarders { 195.70.224.45; 213.90.38.3; };
directory "/var/lib/named";
dump-file "/var/log/named_dump.db";
statistics-file "/var/log/named.stats";
listen-on port 53 { 127.0.0.1; 192.168.1.1; };
notify no;
sortlist {
{ localhost; localnets; };
{ localnets; };
};
include "/etc/named.d/forwarders.conf";
cleaning-interval 120;
};

# To configure named's logging remove the leading '#' characters of the
# following examples.
#logging {
# # Log queries to a file limited to a size of 100 MB.
# channel query_logging {
# file "/var/log/named_querylog"
# versions 3 size 100M;
# print-time yes; // timestamp log entries
# };
# category queries {
# query_logging;
# };
#
# # Or log this kind alternatively to syslog.
# channel syslog_queries {
# syslog user;
# severity info;
# };
# category queries { syslog_queries; };
#
# # Log general name server errors to syslog.
# channel syslog_errors {
# syslog user;
# severity error;
# };
# category default { syslog_errors; };
#
# # Don't log lame server messages.
# category lame-servers { null; };
#};

# The following zone definitions don't need any modification. The first one
# is the definition of the root name servers. The second one defines
# localhost while the third defines the reverse lookup for localhost.

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

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

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

# Include the meta include file generated by createNamedConfInclude. This
# includes all files as configured in NAMED_CONF_INCLUDE_FILES from
# /etc/sysconfig/named

zone "home.at" in {
file "master/home.at";
type master;
};

zone "1.168.192.in-addr.arpa" in {
file "master/home.rev";
type master;
};

include "/etc/named.conf.include";
# You can insert further zone records for your own domains below or create
# single files in /etc/named.d/ and add the file names to
# NAMED_CONF_INCLUDE_FILES.
# See /usr/share/doc/packages/bind/README.SUSE for more details.


/var/lib/named/master/home.at

$TTL 2d
@ IN SOA celdesk.home.at. root.celdesk.home.at. (
2006012700 ; serial
3h ; refresh
1h ; retry
1w ; expiry
1d ) ; minimum

home.at. IN MX celdesk.home.at.
home.at. IN NS celdesk.home.at.
celdesk.home.at. IN A 192.168.1.1
mathias.home.at. IN A 192.168.1.2
pendesk.home.at. IN A 192.168.1.3
hp.home.at. IN A 192.168.1.40
acer.home.at. IN A 192.168.1.103


und

/var/lib/named/master/home.rev

celdesk:/var/lib/named/master # cat home.rev
$TTL 2D
1.168.192.in-addr.arpa. IN SOA celdesk.home.at. root.celdesk.home.at. (
2006012800 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D) ; minimum

1.168.192.in-addr.arpa. IN NS celdesk.home.at.

1.1.168.192.in-addr.arpa. IN PTR celdesk.home.at.
1.1.168.192.in-addr.arpa. IN PTR wiki.home.at.
2.1.168.192.in-addr.arpa. IN PTR mathias.home.at.
3.1.168.192.in-addr.arpa. IN PTR pendesk.home.at.
40.1.168.192.in-addr.arpa. IN PTR hp.home.at.
50.1.168.192.in-addr.arpa. IN PTR ap2k.home.at.
101.1.168.192.in-addr.arpa. IN PTR sony.home.at.
103.1.168.192.in-addr.arpa. IN PTR acer.home.at.
120.1.168.192.in-addr.arpa. IN PTR babsi_ppc.home.at.
121.1.168.192.in-addr.arpa. IN PTR mathias_ppc.home.at.
253.1.168.192.in-addr.arpa. IN PTR dlink.home.at.
254.1.168.192.in-addr.arpa. IN PTR netgear.home.at.


Wisst ihr vielleicht einen Rat, warum der named seine Arbeit nicht richtig verrichtet. Vielleicht habe ich etwas übersehen.

Bitte um Hilfe!
 
Der "_" ist keine erlaubtes Zeichen im DNS. Tausche das mal gegen eine "-" und es sollte gehen. Das sagt die auch die Fehlermeldung "bad name"
 
Oben