[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bind9: Can't find *.in-addr.arpa.: No answer



Vorbemerkung:
Es geht um die Subdomain local.pinguin.uni.cc, die _nur_ lokal verwendet wird. 
Dazu habe ich lokale 2 Nameserver aufgesetzt, ns2 läuft unter Debian und ns1 
unter Suse. Bei beiden habe ich ein Problem mit reverse lookup. Damit wir on 
topic bleiben, geht es also um ns2, dessen Konfiguration ich unten anführe. 
IMHO ist das Problem der NS-Eintrag
"1.168.192.in-addr.arpa. IN NS           sv.local.pinguin.uni.cc."
ganz am Ende.

Was muss ich hier _konkret_ eintragen, damit "reverse lookup" funktioniert. 
Unterschiedliche Varianten habe ich schon einige probiert bzw. was könnte 
noch falsch sein?

Folgendes ist ok:

host client1
client1.local.pinguin.uni.cc has address 192.168.1.101

host client1 ns1
Using domain server:
Name: ns1
Address: 192.168.1.99#53
Aliases:
client1.local.pinguin.uni.cc has address 192.168.1.101

host client1 ns2
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:
client1.local.pinguin.uni.cc has address 192.168.1.101

host debian.org ns1
Using domain server:
Name: ns1
Address: 192.168.1.99#53
Aliases:
debian.org has address 192.25.206.10

host debian.org ns2
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:
debian.org has address 192.25.206.10

host 192.25.206.10 ns1
Using domain server:
Name: ns1
Address: 192.168.1.99#53
Aliases:
10.206.25.192.in-addr.arpa domain name pointer gluck.debian.org.

host 192.25.206.10 ns2
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:
10.206.25.192.in-addr.arpa domain name pointer gluck.debian.org.


Und das funktioniert _nicht_:
Zur Erinnerung, ns2 ist der Debian-Server.

host 192.168.1.101 ns1
Using domain server:
Name: ns1
Address: 192.168.1.99#53
Aliases:

host 192.168.1.101 ns2
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:

nslookup 192.168.1.101 ns2
Server:         ns2
Address:        192.168.1.100#53

*** Can't find 101.1.168.192.in-addr.arpa.: No answer

host -v -t soa client1 ns2
Trying "client1.local.pinguin.uni.cc"
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 25522
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;client1.local.pinguin.uni.cc.      IN      SOA
;; AUTHORITY SECTION:
local.pinguin.uni.cc.       86400   IN      SOA     sv.local.pinguin.uni.cc. 
root.sv.local.pinguin.uni.cc. 2006011801 10800 3600 604800 86400
Received 86 bytes from 192.168.1.100#53 in 1 ms

host -v -t soa 192.168.1.101 ns2
Trying "101.1.168.192.in-addr.arpa"
Using domain server:
Name: ns2
Address: 192.168.1.100#53
Aliases:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42931
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;101.1.168.192.in-addr.arpa.    IN      PTR
;; AUTHORITY SECTION:
1.168.192.in-addr.arpa. 86400   IN      SOA     sv.local.pinguin.uni.cc. 
root.sv.local.pinguin.uni.cc. 2006011806 10800 3600 604800 86400
Received 104 bytes from 192.168.1.100#53 in 1 ms



Es folgen die Konfigurationsdateien:

/etc/resolv.conf
search local.pinguin.uni.cc
nameserver 192.168.1.99


/etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
        address 192.168.1.100
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.99
        dns-nameservers 192.168.1.99
        dns-search local.pinguin.uni.cc


/etc/hosts
127.0.0.1       localhost.localdomain   localhost
192.168.1.100   sv.local.pinguin.uni.cc     sv
192.168.1.101   client1.local.pinguin.uni.cc   client1
192.168.1.102   client2.local.pinguin.uni.cc   client2
192.168.1.103   client3.local.pinguin.uni.cc   client3
192.168.1.104   client4.local.pinguin.uni.cc   client4
192.168.1.105   client5.local.pinguin.uni.cc   client5
192.168.1.106   client6.local.pinguin.uni.cc   client6
192.168.1.107   client7.local.pinguin.uni.cc   client7
192.168.1.108   client8.local.pinguin.uni.cc   client8
192.168.1.98    isdn.local.pinguin.uni.cc      isdn
192.168.0.99    gw.local.pinguin.uni.cc gw
192.168.1.99    gw.local.pinguin.uni.cc
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


/etc/bind/named.conf
include "/etc/bind/named.conf.options";
zone "." {
        type hint;
        file "/etc/bind/db.root";
};
zone "localhost" {
        type master;
        file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
        type master;
        file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
        type master;
        file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
        type master;
        file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";


/etc/bind/named.conf.options
options {
        directory "/var/cache/bind";
forwarders { 195.58.160.194; 193.155.207.61; 217.146.139.5; };
allow-query {
127.0.0.1;
192.168.1.96/28;
};
        auth-nxdomain no;    # conform to RFC1035
};


/etc/bind/named.conf.local
zone "local.pinguin.uni.cc" in {
        file "/etc/bind/db.local.pinguin.uni.cc";
        type master;
};
zone "1.168.192.in-addr.arpa" in {
        file "/etc/bind/db.1.168.192.in-addr.arpa";
        type master;


/etc/bind/db.local.pinguin.uni.cc
$TTL 2d
@               IN SOA          sv.local.pinguin.uni.cc.    
root.sv.local.pinguin.uni.cc. (
                                2006011801      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                1d )            ; minimum
local.pinguin.uni.cc.       IN NS           ns2.local.pinguin.uni.cc.
gw              IN A            192.168.1.99
ns1             IN CNAME        gw
proxy           IN CNAME        gw
mail            IN CNAME        gw
pop3            IN CNAME        gw
smtp            IN CNAME        gw
sv              IN A            192.168.1.100
ns2             IN CNAME        sv
client1         IN A            192.168.1.101
c1              IN CNAME        client1
client2         IN A            192.168.1.102
c2              IN CNAME        client2
client3         IN A            192.168.1.103
c3              IN CNAME        client3
client4         IN A            192.168.1.104
c4              IN CNAME        client4
client5         IN A            192.168.1.105
c5              IN CNAME        client5
client6         IN A            192.168.1.106
c6              IN CNAME        client6
client7         IN A            192.168.1.107
c7              IN CNAME        client7
client8         IN A            192.168.1.108
c8              IN CNAME        client8
client9         IN A            192.168.1.109
c9              IN CNAME        client9
notebook        IN CNAME        client9
nb              IN CNAME        notebook
guest           IN CNAME        client9


/etc/bind/db.1.168.192.in-addr.arpa
$TTL 2d
@               IN SOA          sv.local.pinguin.uni.cc.    
root.sv.local.pinguin.uni.cc. (
                                2006011806      ; serial
                                3h              ; refresh
                                1h              ; retry
                                1w              ; expiry
                                1d )            ; minimum
1.168.192.in-addr.arpa. IN NS           sv.local.pinguin.uni.cc.
192.168.1.99    IN PTR          gw.local.pinguin.uni.cc.
192.168.1.100   IN PTR          sv.local.pinguin.uni.cc.
192.168.1.101   IN PTR          client1.local.pinguin.uni.cc.
192.168.1.102   IN PTR          client2.local.pinguin.uni.cc.
192.168.1.103   IN PTR          client3.local.pinguin.uni.cc.
192.168.1.104   IN PTR          client4.local.pinguin.uni.cc.
192.168.1.105   IN PTR          client5.local.pinguin.uni.cc.
192.168.1.106   IN PTR          client6.local.pinguin.uni.cc.
192.168.1.107   IN PTR          client7.local.pinguin.uni.cc.
192.168.1.108   IN PTR          client8.local.pinguin.uni.cc.
192.168.1.109   IN PTR          client9.local.pinguin.uni.cc.


Al



Reply to: