为什么当我用到rndc时会出现rndc: connect failed: connection refused呢
是否我的dns配置有错误呢?请大哥指点谢谢!
我的dns配置是:
/etc/host.conf配置是
order bind hosts
multi off
nospoof on
trim student.net
/etc/named.conf配置是
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 "student.net" {
type master;
file "student.net.hosts";
allow-update {none; };
};
zone "0.0.10.in-addr.arpa" {
type master;
file "10.0.0.rev";
allow-update {none; };
};
include "/etc/rndc.key";
/var/named/student.net.hosts配置是
$TTL 86400
@ 1D IN SOA hj.student.net. root.hj.student.net. (
1053891162
3H
15M
1W
1D )
1D IN NS hj.student.net.
IN MX 5 hj.student.net.
hj 1D IN A 10.0.0.11
www IN CNAME hj.student.net.
/var/named/10.0.0.rev配置是
$TTL 86400
@ 1D IN SOA hj.student.net. root.hj.student.net. (
1053892104
3H
15M
1W
1D )
1D IN NS hj.student.net.
IN MX 5 hj.student.net.
11 1D IN PTR hj.student.net.