When I read my logs, it wasn't finding the zone files yet i have them there
My Current Configs
Mats:/var/chroot/bind9/etc/bind# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain
#192.168.1.43 Mats.vun.lan Mats
127.0.1.1 Mats.vun.lan Mats
#127.0.1.1 Mats.WORKGROUP Mats
# 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
ff02::3 ip6-allhosts
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 192.168.1.43
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.168.1.43, 196.0.3.70
search vun.lan
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat /etc/hostname
Mats.vun.lan
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# ls
db.0 db.255 db.root named.conf.local zones.rfc1918
db.1.168.192.rev db.empty db.vun.lan named.conf.options
db.127 db.local named.conf rndc.key
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// 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";
};
include "/etc/bind/named.conf.local";
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat 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 "vun.lan" {
type master;
file "/var/chroot/bind9/etc/bind/db.vun.lan";
};
zone "1.168.192.in-addr.arpa" {
type master;
file "/var/chroot/bind9/etc/bind/db.1.168.192.rev";
};
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat db.vun.lan
;
; BIND data file for vun.lan
;
$TTL 604800
@ IN SOA Mats.vun.lan. admin.vun.lan. (
20090524 ; serial
7200 ; Refresh
120 ; Retry
2419200 ; Expiry
604800 ; Default TTL
)
@ IN NS Mats.vun.lan.
@ IN NS Mon.vun.lan.
@ IN A 192.168.1.15
@ IN A 192.168.1.43
@ IN MX 10 Mats.vun.lan.
Mats IN A 192.168.1.43
vun.lan.IN A 192.168.1.43
Mon IN A 192.168.1.15
www IN CNAME Mats
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat db.1.168.192.rev
;
; BIND data file for 1.168.192
;
$TTL 604800
$ORIGIN 1.1.168.192.in-addr-arpa.
@ IN SOA Mats.vun.lan. admin.vun.lan. (
20090524 ; serial
604800 ; Refresh
120 ; Retry
2419200 ; Expiry
604800 ; Default TTL
)
IN NS Mats.vun.lan.
IN NS Mon.vun.lan.
43 IN PTR Mats.vun.lan.
43 IN PTR vun.lan.
15 IN PTR Mon.vun.lan.
Mats:/var/chroot/bind9/etc/bind#
Mats:/var/chroot/bind9/etc/bind# cat named.conf.options
options {
directory "/var/cache/bind";
// listen-on port 53 {192.168.1.0;}
allow-query {192.168.1.0/24;127.0.0.1;};
// 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.
forwarders {
196.0.3.70;
};
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
};
Mats:/var/chroot/bind9/etc/bind#
LOGS
May 25 22:40:00 Mats named[6478]: loading configuration from '/etc/bind/named.conf'
May 25 22:40:00 Mats named[6478]: max open files (1024) is smaller than max sockets (4096)
May 25 22:40:00 Mats named[6478]: using default UDP/IPv4 port range: [1024, 65535]
May 25 22:40:00 Mats named[6478]: using default UDP/IPv6 port range: [1024, 65535]
May 25 22:40:00 Mats named[6478]: listening on IPv6 interfaces, port 53
May 25 22:40:00 Mats named[6478]: listening on IPv4 interface lo, 127.0.0.1#53
May 25 22:40:00 Mats named[6478]: listening on IPv4 interface eth0, 192.168.1.43#53
May 25 22:40:00 Mats named[6478]: automatic empty zone: 254.169.IN-ADDR.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 2.0.192.IN-ADDR.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 255.255.255.255.IN-ADDR.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: D.F.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 8.E.F.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: 9.E.F.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: A.E.F.IP6.ARPA
May 25 22:40:00 Mats named[6478]: automatic empty zone: B.E.F.IP6.ARPA
May 25 22:40:00 Mats named[6478]: command channel listening on 127.0.0.1#953
May 25 22:40:00 Mats named[6478]: command channel listening on ::1#953
May 25 22:40:00 Mats named[6478]: zone 0.in-addr.arpa/IN: loaded serial 1
May 25 22:40:00 Mats named[6478]: zone 127.in-addr.arpa/IN: loaded serial 1
May 25 22:40:00 Mats named[6478]: zone 1.168.192.in-addr.arpa/IN: loading from master file /var/chroot/bind9/etc/bind/db.1.168.192.rev failed: file not found
May 25 22:40:00 Mats named[6478]: zone 255.in-addr.arpa/IN: loaded serial 1
May 25 22:40:00 Mats named[6478]: zone vun.lan/IN: loading from master file /var/chroot/bind9/etc/bind/db.vun.lan failed: file not found
May 25 22:40:00 Mats named[6478]: zone localhost/IN: loaded serial 2
May 25 22:40:00 Mats named[6478]: running
May 25 22:40:01 Mats named[6478]: network unreachable resolving 'local/SOA/IN': 2001:7fd::1#53
May 25 22:40:02 Mats named[6478]: network unreachable resolving 'local/SOA/IN': 2001:dc3::35#53
May 25 22:40:02 Mats named[6478]: network unreachable resolving 'local/SOA/IN': 2001:500:1::803f:235#53
May 25 22:40:05 Mats postfix/master[2526]: reload configuration /etc/postfix
Mats:/var/chroot/bind9/etc/bind# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).