Ok, for the life of me, I can't figure out why my DNS server isn't working.
Here is my /etc/named.conf file (I am only worried about the local portion.).
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
//Zone record for procns.net
zone "procns.net" IN {
type master;
file "procns.net.db";
allow-update { none; };
};
//Zone record for thewoodswork.com
zone "thewoodswork.com" IN {
type master;
file "thewoodswork.com.db";
allow-update { none; };
};
and here are my /var/named/thewoodswork.com.db and /var/named/procns.net.db files
$TTL 86400
@ IN SOA procns.net. jon.procns.net.
(
2002052701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name Servers
IN NS spcns1.procns.net.
; Mail server for domain
IN MX 10 mail.procns.net.
; Public Servers
spcns1 IN A 192.168.1.10
www IN A 192.168.1.10
ftp IN A 192.168.1.10
mail IN A 192.168.1.10
$TTL 86400
@ IN SOA woodswork.com. jon.woodswork.com.
(
2002052701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name server
IN NS ns1.woodswork.com
; Mail server
IN MX 10 mail.woodswork.com
; Public Servers
www IN A 192.168.1.10
ftp IN A 192.168.1.10
mail IN A 192.168.1.10
ns1 IN A 192.168.1.10
; EOF
Please help. I have spent a few hours on this. It was working, but then I went messing around with it, lol. I have restarted the /etc/init.d/named service a few times.
Thanks,
Jon
Here is my /etc/named.conf file (I am only worried about the local portion.).
// generated by named-bootconf.pl
options {
directory "/var/named";
/*
* If there is a firewall between you and nameservers you want
* to talk to, you might need to uncomment the query-source
* directive below. Previous versions of BIND always asked
* questions using port 53, but BIND 8.1 uses an unprivileged
* port by default.
*/
// query-source address * port 53;
};
//
// a caching only nameserver config
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "." IN {
type hint;
file "named.ca";
};
zone "localhost" IN {
type master;
file "localhost.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
//Zone record for procns.net
zone "procns.net" IN {
type master;
file "procns.net.db";
allow-update { none; };
};
//Zone record for thewoodswork.com
zone "thewoodswork.com" IN {
type master;
file "thewoodswork.com.db";
allow-update { none; };
};
and here are my /var/named/thewoodswork.com.db and /var/named/procns.net.db files
$TTL 86400
@ IN SOA procns.net. jon.procns.net.
(
2002052701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name Servers
IN NS spcns1.procns.net.
; Mail server for domain
IN MX 10 mail.procns.net.
; Public Servers
spcns1 IN A 192.168.1.10
www IN A 192.168.1.10
ftp IN A 192.168.1.10
mail IN A 192.168.1.10
$TTL 86400
@ IN SOA woodswork.com. jon.woodswork.com.
(
2002052701 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
; Name server
IN NS ns1.woodswork.com
; Mail server
IN MX 10 mail.woodswork.com
; Public Servers
www IN A 192.168.1.10
ftp IN A 192.168.1.10
mail IN A 192.168.1.10
ns1 IN A 192.168.1.10
; EOF
Please help. I have spent a few hours on this. It was working, but then I went messing around with it, lol. I have restarted the /etc/init.d/named service a few times.
Thanks,
Jon