Bind löst nur FQHN auf, nicht Hostname

jeudi 7 avril 2016

Hallo zusammen,

ich habe auf einem der Nameserver ein Problem welches ich nicht lokalisiert bekomme. HostOS ist Ubuntu 14.04.4 LTS. Hier die entsprechende Konfigurationen:

/etc/hosts
Code:

127.0.0.1      localhost
127.0.1.1      kvm01
192.168.5.1    kvm01.dental.lan kvm01

kvm01 ist also der Nameserver.

/etc/network/interfaces
Code:

# Loopback-Interface
auto lo
iface lo inet loopback

# Schnittstelle für intern
auto eth0
iface eth0 inet manual

auto intern
iface intern inet static
        address 192.168.5.1
        network 192.168.5.0
        netmask 255.255.255.0
        gateway 192.168.5.5
        dns-nameservers 192.168.5.1
        dns-search dental.lan
        bridge_ports eth0
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

# Schnittselle für extern
auto eth1
iface eth1 inet manual

# Bridge für das externe WAN
auto extern
iface extern inet manual
        bridge_ports eth1
        bridge_fd 9
        bridge_hello 2
        bridge_maxage 12
        bridge_stp off

/etc/bind/named.conf
Code:

include "/etc/bind/named.conf.options";
include "/etc/bind/named.conf.local";
include "/etc/bind/named.conf.default-zones";

/etc/bind/named.conf.local
Code:

include              "/etc/bind/ddns.key";

zone "dental.lan" {
    type master;
    file "/var/cache/bind/db.dental.lan";
    allow-update { key "DHCP_UPDATER"; };
};

zone "5.168.192.in-addr.arpa" IN {
    type master;
    file "/var/cache/bind/db.5.168.192";
    allow-update { key "DHCP_UPDATER"; };
};

/etc/bind/named.conf.local
Code:

include              "/etc/bind/ddns.key";

zone "dental.lan" {
    type master;
    file "/var/cache/bind/db.dental.lan";
    allow-update { key "DHCP_UPDATER"; };
};

zone "5.168.192.in-addr.arpa" IN {
    type master;
    file "/var/cache/bind/db.5.168.192";
    allow-update { key "DHCP_UPDATER"; };
};

/etc/bind/named.conf.default-zones
Code:

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

/etc/bind/db.dental.lan
Code:

$TTL 172800    ; 2 days
@              IN      SOA    kvm01.dental.lan. root.dental.lan. (
                                2016040701 ; serial
                                28800      ; refresh (8 hours)
                                7200      ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                10800      ; minimum (3 hours)
                                )
@              IN      NS      kvm01.dental.lan.
                IN      MX      10 kolab.dental.lan.
                IN      A      192.168.5.1

kvm01          IN      A      192.168.5.1
ipfire          IN      A      192.168.5.5
tux            IN      A      192.168.5.6
kolab          IN      A      192.168.5.7

/etc/bind/db.5.168.192
Code:

$TTL 172800    ; 2 days
@      IN      SOA    kvm01.dental.lan. root.dental.lan. (
                                2016040701 ; serial
                                28800      ; refresh (8 hours)
                                7200      ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                172800    ; minimum (2 days)
                                )
@      IN      NS      kvm01.dental.lan.
1      IN      PTR    kvm01.dental.lan.
5      IN      PTR    ipfire.dental.lan.
6      IN      PTR    tux.dental.lan.
7      IN      PTR    kolab.dental.lan.


Ein Linux-Host hat die IP (statisch) 192.168.5.7 und den FQHN "kolab.dental.lan" Mache ich nun direkt am Nameserver einen:
Code:

root@kvm01:~# ping kolab
ping: unknown host kolab

klappt die Auflösung nicht. Mache ich hingegen ein:
Code:

root@kvm01:~# ping kolab.dental.lan
PING kolab.dental.lan (192.168.5.7) 56(84) bytes of data.
64 bytes from kolab.dental.lan (192.168.5.7): icmp_seq=1 ttl=64 time=0.136 ms
64 bytes from kolab.dental.lan (192.168.5.7): icmp_seq=2 ttl=64 time=0.163 ms
64 bytes from kolab.dental.lan (192.168.5.7): icmp_seq=3 ttl=64 time=0.162 ms
64 bytes from kolab.dental.lan (192.168.5.7): icmp_seq=4 ttl=64 time=0.174 ms
....

klappt alles.

Wo habe ich hier einen Fehler in meiner Konfiguration?


0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor