Thanks for the reply,
Out of curiosity, why would you recommend BIND over PowerDNS?
I'm new in the world of domain name resolution and though I was able to get BIND to resolve the domain name, I'm still having a problem.
When I add the line "//include “/var/named/etc/rndc.key”;" I'm unable to start named. That is the reason it is commented out.
I used
this tutorial as a guide to my setup and unless I comment out the above line I can't start named.
Any suggestions?
Here is my named.conf file:
// Red Hat BIND Configuration Tool
//
// Default initial "Caching Only" name server configuration
//
// we include the rndckey (copy-paste from rndc.key created
//earlier)
//include “/var/named/etc/rndc.key”;
This is the line I had to comment out
controls {
inet 127.0.0.1 allow { 127.0.0.1; } keys { "rndckey"; };
inet 192.168.10.1 allow { 192.168.10.0/24; } keys {
"rndckey";
};
};
options {
directory "/var/named";
pid-file "/var/run/named/named.pid";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
recursion yes;
allow-recursion {
127.0.0.1;
192.168.10.0/24;
};
forwarders {
XXX.XXX.160.35; //These are the DNS servers from my ISP
XXX.XXX.160.36;
};
listen-on {
127.0.0.1;
192.168.10.1;
};
/*
* 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;
version "REFUSED";
allow-query {
127.0.0.1;
192.168.10.0/24;
};
};
server 192.168.10.1 {
keys { rndckey; };
};
zone "." IN {
type hint;
file "data/named.root.zone";
};
zone "spudlabs.com." IN {
type master;
file "data/spudlabs.com.zone";
allow-update { none; };
};
Below are the zone files:
GNU nano 1.3.12 File: named.root.zone
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47429
;; flags: qr aa rd; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 14
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 518400 IN NS a.root-servers.net.
. 518400 IN NS b.root-servers.net.
. 518400 IN NS c.root-servers.net.
. 518400 IN NS m.root-servers.net.
. 518400 IN NS g.root-servers.net.
. 518400 IN NS i.root-servers.net.
. 518400 IN NS k.root-servers.net.
. 518400 IN NS e.root-servers.net.
. 518400 IN NS d.root-servers.net.
. 518400 IN NS f.root-servers.net.
. 518400 IN NS j.root-servers.net.
. 518400 IN NS l.root-servers.net.
. 518400 IN NS h.root-servers.net.
;; ADDITIONAL SECTION:
a.root-servers.net. 3600000 IN A 198.41.0.4
a.root-servers.net. 3600000 IN AAAA 2001:503:ba3e::2:30
b.root-servers.net. 3600000 IN A 192.228.79.201
c.root-servers.net. 3600000 IN A 192.33.4.12
d.root-servers.net. 3600000 IN A 128.8.10.90
e.root-servers.net. 3600000 IN A 192.203.230.10
f.root-servers.net. 3600000 IN A 192.5.5.241
f.root-servers.net. 3600000 IN AAAA 2001:500:2f::f
g.root-servers.net. 3600000 IN A 192.112.36.4
h.root-servers.net. 3600000 IN A 128.63.2.53
h.root-servers.net. 3600000 IN AAAA 2001:500:1::803f:235
i.root-servers.net. 3600000 IN A 192.36.148.17
i.root-servers.net. 3600000 IN AAAA 2001:7fe::53
j.root-servers.net. 3600000 IN A 192.58.128.30
;; Query time: 224 msec
;; SERVER: 192.203.230.10#53(192.203.230.10)
;; WHEN: Mon Mar 21 10:08:48 2011
;; MSG SIZE rcvd: 500
I took the above configuration from
this tutorial
And following is my spudlabs.com.zone file
$ttl 38400
spudlabs.com. IN SOA ns.spudlabs.com. admin.spudlabs.com.(
2007020400 ; Serial
10800 ; Refresh after 3 hours
3600 ; Retry after 1 hour
604800 ; Expire after 1 week
86400 ) ; Minimum TTL of 1 day
spudlabs.com. IN NS ns.spudlabs.com.
spudlabs.com. IN MX 1 mx.spudlabs.com.
spudlabs.com. IN A XXX.XXX.126.106
This my static IP from my ISP
www.spudlabs.com. IN A XXX.XXX.126.106
ns.spudlabs.com. IN A XXX.XXX.126.106
mx.spudlabs.com. IN A 192.168.10.1
mail.spudlabs.com. IN CNAME mx.spudlabs.com.
These are the only 2 zone files I have.
I don't currently have any mail program running, but it is a future project. I have to take this in stages so I can absorb just what I'm doing.
I'm curious if you have any suggestions for me about this configuration. It's all so new to me, and I don't fully grasp it yet.
You can take a look at my site
here. As you can see I learn more from doing than from reading about it. I'm 'hands-on' oriented.
Thanks in advance for any assistance you might offer.
Cheers,
SpudLabs