Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: Ubuntu bind9 dns probleem  (gelezen 266 keer)

Offline Takeshi

  • Lid
Ubuntu bind9 dns probleem
« Gepost op: 2012/10/19, 16:33:35 »
Hallo, ik probeer een dns op te stellen via bind9 op linux 11.10

HIer de dingen die ik al gedaan heb:

 /etc/network/interfaces file:
auto eth0
iface eth0 inet static
address 192.168.56.20
netmask 255.255.255.0
network 192.168.56.0
broadcast 192.168.56.255
gateway 192.168.56.1
auto lo
iface lo inet loopback

dan /etc/resolvconf/resolv.conf.d/base

nameserver 192.168.56.20
nameserver 192.168.56.10

Ik installeerde bind9 en dan /etc/bind/named.conf.local file

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";

zone "lintest.be"{
        type master;
        file "/etc/bind/zones/lintest.be.db";
}
Dan veranderde ik /etc/bind/named.conf.options omdat ik ook een DNS server heb ok windows 2008 server in virtualbox met een host only netwerk

options {
        directory "/var/cache/bind";

        // If there is a firewall between you and nameservers you want
        // to talk to, you may need to fix the firewall to allow multiple
        // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

        // If your ISP provided one or more IP addresses for stable
        // nameservers, you probably want to use them as forwarders.
        // Uncomment the following block, and insert the addresses replacing
        // the all-0's placeholder.

recursion yes;

        forwarders {
                192.168.56.10;
        };

        auth-nxdomain no;    # conform to RFC1035
        listen-on-v6 { any; };
};

 /etc/bind/zones/lintest.be.db file:


$TTL 3D
@ IN SOA ns.mydomain.be. admin.mydomain.be. (
   2007062001
   28800
   3600
   604800
   38400
);
lintest.be.  IN      NS         ns.lintest.be.
mail     IN    CNAME  www
www             IN      A          192.168.56.10
Wanneer ik nslookup mail.lintest.be probeer krijg ik het volgende:

;; Got SERVFAIL reply from 192.168.56.20, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server

Weet iemand het probleem?