Author Topic: Ubuntu bind9 dns problem  (Read 1154 times)

Offline Takeshi

  • Newbie
  • *
  • Posts: 1
Ubuntu bind9 dns problem
« on: October 19, 2012, 02:30:13 PM »
Hi, I'm trying to setup a DNS on my linux ubuntu 11.10

So here are the things that i've done:

First I changed the /etc/network/interfaces file:
Code: [Select]
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

Then I changed the /etc/resolvconf/resolv.conf.d/base file with

Code: [Select]
nameserver 192.168.56.20
nameserver 192.168.56.10

I installed bind9 and edited the /etc/bind/named.conf.local file

Code: [Select]
//
// 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";
}
Then I changed /etc/bind/named.conf.options because I got a DNS server on Windows Server 2008 aswell (both Linux & Windows server are running in VirtualBox on a host-only network)

Code: [Select]
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; };
};

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


Code: [Select]
$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
When I want to lookup the dns server with nslookup mail.lintest.be I get this:

Code: [Select]
;; Got SERVFAIL reply from 192.168.56.20, trying next server
;; Got SERVFAIL reply from 127.0.0.1, trying next server

Does somebody know the problem?
« Last Edit: October 19, 2012, 02:35:54 PM by Takeshi »

Ubuntu Forums (Ubuntu Linux Support)

Ubuntu bind9 dns problem
« on: October 19, 2012, 02:30:13 PM »