Ubuntu Forums (Ubuntu Linux Support)

Ubuntu Server => Application Support => Topic started by: coffeeninja on April 10, 2012, 09:27:51 AM

Title: DNS problems
Post by: coffeeninja on April 10, 2012, 09:27:51 AM
Hi, came here to get some fresh eyes on my DNS problem.
I have tried to setup a dns server with bind9. Things went okay until i started trying to dig/nslook/ping the dns, which did not respond. Both my zone file and reverse lookup zone file are okay according to named-checkzone.

Here is the config:

domain ip=
dns ip=
nameserver ip =

// replace example.com with your domain name, and with the address of your new DNS server.
search isp2.datornatverk.se

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

   forwarders {;

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


// 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 "isp2.datornatverk.se" {
        type master;
        file "etc/bind/zones/db.isp2.datornatverk.se";

zone "20.168.192.in-addr.arpa" {
     type master;
     file "etc/bind/zones/rev.20.168.192.in-addr.arpa";

<//etc/hosts//>   localhost   ns1.isp2.datornatverk.se script.tt.ltu.se

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters


@          IN    SOA    ns1.isp2.datornatverk.se.       admin.isp2.datornatverk.se. (
                              86400 )

@         IN       NS     ns1.

20                   IN       PTR    isp2.datornatverk.se
20         IN       PTR   www.isp2.datornatverk.se.
30         IN   PTR   mail.isp2.datornatverk.se.


$TTL 3D     

@                IN    SOA    ns1.isp2.datornatverk.se. admin.isp2.datornatverk.se. (
@               IN     NS                  ns1
ns1               IN   A
www                      IN     A   
isp2.datornatverk.se.            IN     MX      10          mail.isp2.datornatverk.se.
mail                       IN     A   
admin               IN   A


Any help would be appreciated.