Thanks Bathory, I have sorted out my zone files but I think i now have a problem with my name.config.options, Am almost sure its reason I am failing to dig coz my server isn't listening to the network and when i put listen to the network 192.168.1.43, server fails to start on /etc/init.d/bind9 restart
below is my current options file
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#
Mats:/var# /etc/init.d/bind9 restart
Stopping domain name service...: bind9rndc: connect failed: 127.0.0.1#953: connection refused
.
Starting domain name service...: bind9 failed!
Mats:/var#
I think when i dig I have to get results below
Mats:/# vun.lan
; <<>> DiG 9.3.4 <<>> vun.lan
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54950
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;vun.lan. IN A
;; ANSWER SECTION:
vun.lan. 64800 IN A 192.168.100.43
;; AUTHORITY SECTION:
vun.lan. 64800 IN NS Mats.vun.lan.
;; ADDITIONAL SECTION:
Mats.vun.lan. 64800 IN A 192.168.100.1
;; Query time: 1 msec
;; SERVER: 192.168.1.53#53(192.168.1.53)
;; WHEN: Tue may 23 09:33:40 2008
;; MSG SIZE rcvd: 79
(I have just edited sample from link to fit mine -
http://www.cahilig.org/how-setup-a-l...d-ubuntu-linux)
Mine when i dig
Mats:/# dig vun.lan
; <<>> DiG 9.5.1-P1 <<>> vun.lan
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 35113
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;vun.lan. IN A
;; AUTHORITY SECTION:
. 10799 IN SOA a.root-servers.net. nstld.verisign-grs.com. 2009052300 1800 900 604800 86400
;; Query time: 517 msec
;; SERVER: 196.0.3.70#53(196.0.3.70)
;; WHEN: Sat May 23 19:39:23 2009
;; MSG SIZE rcvd: 100
Mats:/#
What can I do - if you take not, I instead see my isp server