Hi I am trying to setup a simple local bind server, and I can' t figure howto write CNAME properly
OS=Centos 5.5
hostname: linux.local
tool=Perls dnswalk for trouble shoot and Webmin.
dnswalk generates this error:
Code:
[root@linux DNS]#perl dnswalk linux.local. >logfile
Getting zone transfer of linux.local. from localhost...done.
0 failures, 0 warnings, 1 errors.
[root@linux DNS]# cat logfile
Checking linux.local.
SOA=localhost contact=root.linux.local
BAD: linux.local NS localhost: CNAME (to linux.local)
Code:
/var/named/slaves/linux.local.zone
$TTL 1H
@ IN SOA localhost. root.linux.local. (
39
3H
1H
1W
1H )
@ IN NS localhost.
IN NS dns1.telia.com.
@ IN A 127.0.0.1
@ IN AAAA ::1
Code:
/var/named/slaves/2.0.10.in-addr.arpa.zone
$TTL 1H
@ SOA localhost. root.localhost. ( 2
3H
1H
1W
1H )
NS localhost.
Code:
/etc/named.conf
/ Red Hat BIND Configuration Tool
//
// Default initial "Caching Only" name server configuration
//
controls {
inet 127.0.0.1 allow { localhost; } keys { rndckey; };
};
zone "linux.local." IN {
type master;
file "slaves/linux.local.zone";
allow-update {
key rndckey;
};
};
zone "2.0.10.in-addr.arpa." IN {
type master;
file "slaves/2.0.10.in-addr.arpa.zone";
allow-update {
key rndckey;
};
};
options {
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
/*
* 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;
forwarders {
10.0.2.1;
};
};
include "/etc/rndc.key";
help would be appreciated