我第一次配置dns 一直无法配置成功,以下我的配置文件,请帮忙看看问题在哪
文件named.conf
// generated by named-bootconf.pl
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;
ile "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 "sundyhuang.com" IN {
type master;
file "sundyhuang.com.db";
allow-update {none;};
};
zone "40.9.10.in-addr.arpa" IN {
type master;
file "db.10.9.40.50";
allow-update {none;};
};
include "/etc/rndc.key";
文件sundyhuang.com.db
$TTL86400
@IN SOA www.sundyhuang.com. sundyhuang.com.(
2007032801;Serial
28800;Refresh
14400;Retry
3600000;Expire
86400);Minimum
IN NS www.sundyhuanng.com.
localhost IN A 127.0.0.1
www.IN A 10.9.40.50
文件db.10.9.40.50
$TTL86400
@IN SOA www.sundyhuang.com. sundyhuang.com. (
2007032801;Serial
28800;Refresh
14400;Retry
3600000;Expire
86400);Minimum
IN NS www.sundyhuang.com.
10.9.40.50 IN PTR www.sundyhuang.com.
文件hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.9.40.50 jyhuang.sundyhuang.com jyhuang