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=isp2.datornatverk.se
domain ip=192.168.20.20
dns ip= 192.168.20.20
nameserver ip =
<//etc/resolv.conf//>
// replace example.com with your domain name, and 192.168.0.1 with the address of your new DNS server.
search isp2.datornatverk.se
nameserver 192.168.20.20
nameserver 130.240.136.144
<//etc/bind/named.conf.options//>
options {
directory "/var/cache/bind";
forwarders {
130.240.136.144;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
<//etc/bind/named.conf.local//>
//
// 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//>
192.168.20.20 localhost
192.168.20.20 ns1.isp2.datornatverk.se
130.240.136.144 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
<//etc/bind/zones/rev.20.168.192.in-addr.arpa//>
$TTL 3D
@ IN SOA ns1.isp2.datornatverk.se. admin.isp2.datornatverk.se. (
2006081401
28800
604800
604800
86400 )
@ IN NS ns1.
20 IN PTR isp2.datornatverk.se
20 IN PTR
www.isp2.datornatverk.se.
30 IN PTR mail.isp2.datornatverk.se.
<//etc/bind/zones/db.isp2.datornatverk.se//>
$TTL 3D
@ IN SOA ns1.isp2.datornatverk.se. admin.isp2.datornatverk.se. (
2006081401
28800
3600
604800
38400
)
;
@ IN NS ns1
ns1 IN A 192.168.20.20
www IN A 192.168.20.20
isp2.datornatverk.se. IN MX 10 mail.isp2.datornatverk.se.
mail IN A 192.168.20.30
admin IN A 192.168.20.20
..
Any help would be appreciated.