|
|
cat /etc/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 "." {
type hint;
file "named.ca";
};
zone "lux.net" {
type master;
file "lux.net.hosts";
};
zone "20.111.128.in-addr.arpa" {
type master;
file "128.111.20.rev";
};
zone "0.0.127.in-addr.arpa"{
type master;
file "named.local";
};
include "/etc/rndc.key";
cat /var/named/lux.net.hosts
$TTL 1D
@ IN SOA yj.lux.net. root.yj.lux.net.
(
1053891162
3H
15M
1W
1D)
IN NS yj.lux.net.
IN MX 5 yj.lux.net.
yj IN A 128.111.20.69
www IN CNAME yj.lux.net.
cat /var/named/128.111.20.rev
$TTL 1D
@ IN SOA yj.lux.net. root.yj.lux.net.
(
1053892104
3H
15M
1W
1D)
IN NS yj.lux.net.
69 IN PTR yj.lux.net.
cat /etc/resolv.conf
nameserver 128.111.20.69
这个配置哪里有问题,解析不了,请高手赐教 |
|