There were no compilation errors and 'named' also starts successfully. I think I am doing some mistake in the zone files.I am trying the following simple setup in my private network:
host1-------------- ---------------HUB ------------------------ host2
(fec0:1234:5678:1234::1/64) |
DNS server(fec0:1234:5678:1234::2/64)
(host1 host2 and DNS server all connected to the same HUB)
I want to have host1 and host2 in example.domain and would like DNS server to resolve the domain name when looked up from host1.
on host1:
vi /etc/resolv.conf
nameserver fec0:1234:5678:1234::2
named.conf on DNS server:
options {
};
//
// a caching only nameserver config
//
controls {
};
zone "." IN {
};
zone "localhost" IN {
};
zone "0.0.127.in-addr.arpa" IN {
};
zone "::.ip6.arpa" IN {
};
zone "example.domain" IN {
};
include "/etc/rndc.key";
I creaetd the files ::.ip6.arpa.zone and example.domain.zone
Is it right to create such file???
::.ip6.arpa.zone file on DNS server: ( Thought it's similar to 0.0.127.in-addr.arpa.zone)
$TTL 86400
@
@
1
example.domain.zone on DNS server:
$TTL 86400
@
@
$ORIGIN example.domain
@
host1
host2
Now on host1 ,I do
dig 0.0.0.0 host2.example.domain a6
or
dig :: host2.example.domain a6
It does not succeed.It says,
no servers could be reached;connection timed out;
On server side, in /var/log/messages it says unexpected end of file in example.domain.zone
/var/log/messages on DNS Server
Apr 11 17:56:31 intoto named[1753]: starting BIND 9.2.1 -u named
Apr 11 17:56:31 intoto named[1753]: using 1 CPU
Apr 11 17:56:31 intoto named[1756]: loading configuration from '/etc/named.conf'
Apr 11 17:56:31 intoto named[1756]: listening on IPv6 interfaces, port 53
Apr 11 17:56:31 intoto named[1756]: listening on IPv4 interface lo, 127.0.0.1#53
Apr 11 17:56:31 intoto named[1756]: binding TCP socket: address in use
Apr 11 17:56:31 intoto named[1756]: listening on IPv4 interface eth0, 172.16.15.16#53
Apr 11 17:56:31 intoto named[1756]: binding TCP socket: address in use
Apr 11 17:56:31 intoto named[1756]: listening on IPv4 interface eth1, 172.16.17.17#53
Apr 11 17:56:31 intoto named[1756]: binding TCP socket: address in use
Apr 11 17:56:31 intoto named[1756]: command channel listening on 127.0.0.1#953
Apr 11 17:56:31 intoto named[1756]: zone 0.0.127.in-addr.arpa/IN: loaded serial 1997022700
Apr 11 17:56:31 intoto named[1756]: zone ::.ip6.arpa/IN: loaded serial 1997022700
Apr 11 17:56:31 intoto named[1756]: dns_rdata_fromtext: example.domain.zone:14: near eol: unexpected end of input
Apr 11 17:56:31 intoto named[1756]: zone example.domain/IN: loading master file example.domain.zone: unexpected end of input
Apr 11 17:56:31 intoto named[1756]: zone localhost/IN: loaded serial 42
Apr 11 17:56:31 intoto named[1756]: running
Apr 11 17:56:31 intoto named: named startup succeeded
Can someone please tell me where I am wrong . I am completely new to this.So,I could have made some silly mistakes.So,please correct me and guide me or point me to proper help docs on this.
Also is it compulsory to have DNSSEC enabled for IPv6 DNS ??
Thanks in advance,
Sharmila