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

AW: lokaler DNS um VHosts aufzulösen



> Hast Du das Zonenfile auch in den named.conf eingetragen?

Ja, siehe weiter unten.

> Bei der Fehlermelung hilft Dir google weiter.

Die Fehlerbeschreibungen sind alle unterschiedlich. Meistens scheint es aber
darauf hinaus zu laufen, dass der NS nicht richtig konfiguriert ist / nicht
gefunden werden kann.


Ich habe mal interessehalber folgendes gemacht:

zed:/# lsof -i
COMMAND     PID        USER   FD   TYPE DEVICE SIZE NODE NAME
[...]
named     22698        bind   20u  IPv4 159920       UDP zed.local:domain
named     22698        bind   21u  IPv4 159921       TCP zed.local:domain
(LISTEN)
named     22698        bind   22u  IPv4 159922       UDP 192.168.1.2:domain
named     22698        bind   23u  IPv4 159923       TCP 192.168.1.2:domain
(LISTEN)
named     22698        bind   24u  IPv4 159924       UDP *:33495
named     22698        bind   25u  IPv6 159925       UDP *:33497
named     22698        bind   26u  IPv4 159926       TCP zed.local:953
(LISTEN)
named     22698        bind   27u  IPv6 159927       TCP ip6-localhost:953
(LISTEN)

Wobei mir die letzten beiden Zeilen sagen, dass der named auf Port 953
lauscht und nicht wie er soll auf 53 (vor allem auch für IPv6, wobei ich
eigentlich per Conf das deaktiviert habe). Obwohl:

zed:/# netstat -an
Aktive Internetverbindungen (Server und stehende Verbindungen)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
[...]
tcp        0      0 192.168.1.2:53          0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN
tcp        0      0 127.0.0.1:953           0.0.0.0:*               LISTEN
tcp6       0      0 ::1:953                 :::*                    LISTEN
udp        0      0 192.168.1.2:53          0.0.0.0:*
udp        0      0 127.0.0.1:53            0.0.0.0:*
[...]

Wahrscheinlich ist mein Fehler ganz woanders...
Hier mal meine 
named.conf:

include "/etc/bind/named.conf.options";

// prime the server with knowledge of the root servers
zone "." {
        type hint;
        file "/etc/bind/db.root";
};

// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912

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";
};


zone "zed.local" {
        type master;
        file "/etc/bind/db.zed";
};

include "/etc/bind/named.conf.local";

------------------------------------------------------

Und meine named.conf.options:

options {
        directory "/var/cache/bind";
        listen-on port 53 { 127.0.0.1; 192.168.1.2; };
        listen-on-v6 { none; };
        forwarders {
                194.25.2.129;
        };

        auth-nxdomain no;    # conform to RFC1035

};

------------------------------------------------------

Vielleicht hat sich hier irgendwo ein blöder Fehler eingeschlichen?



Reply to: