Hi
I am a bit of a newbie to the dns thing so I hope somebody can help me with the following. I am trying to set up a dns server for a small test network that doesn’t have internet connection. I just want the server provide ip addresses for the hosts on the local network.
This is my /etc/named.conf file
options {
directory "/var/named";
};
zone "mydomain.tld" IN {
type master;
file "master/mydomain.tld";
};
very minimal I know but shouldn’t this be enough just to serve the internal hosts?
This is the zone file:
$TTL 86400
@ IN SOA ns1.mydomain.tld. hostmaster.mydomain.tld. (
2004100610 ; Serial Number
21600 ; Refresh time
3600 ; Retry time
604800 ; Expire time
86400 ) ; Minimum TTL
IN NS mydomain.tld.
www IN A 10.0.0.2
I then start named no problems - this is the log:
starting BIND 9.2.2-P3 -u named
Oct 7 11:11:21 ns1 named[3901]: using 1 CPU
Oct 7 11:11:21 ns1 named[3901]: loading configuration from '/etc/named.conf'
Oct 7 11:11:21 ns1 named[3901]: listening on IPv4 interface lo, 127.0.0.1#53
Oct 7 11:11:21 ns1 named[3901]: listening on IPv4 interface eth0, 10.0.0.3#53
Oct 7 11:11:21 ns1 named[3901]: command channel listening on 127.0.0.1#953
Oct 7 11:11:21 ns1 named[3901]: command channel listening on ::1#953
Oct 7 11:11:21 ns1 named[3901]: zone mydomain.tld/IN: loaded serial 2004100610
Oct 7 11:11:21 ns1 named[3901]: running
But when I try to dig @ 127.0.0.1 on ns1 I get?
; <<>> DiG 9.2.2-P3 <<>>
;; global options: printcmd
;; connection timed out; no servers could be reached
please help someone...