- 论坛徽章:
- 0
|
/etc/named.conf文件的内容如下
# more named.conf
// generated by named-bootconf.pl
options {
directory "/var/named";
version "Hello World";
/*
* 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 "test2.com" IN {
type master;
file "test2.com.zone";
allow-update { none; };
};
zone "0.0.127.in-addr.arpa" IN {
type master;
file "named.local";
allow-update { none; };
};
zone "1.168.192.in-addr.arpa" IN {
type master;
file "1.168.192";
allow-update { none; };
};
include "/etc/rndc.key";
/var/named/下的相应文件内容为
# more test2.com.zone
$TTL 86400
@ IN SOA test2.com. postmaster.test2.com. (
42 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum
IN A 192.168.1.70
www IN A 192.168.1.70
mail IN A 192.168.1.70
@ IN MX 10 mail
ftp IN CNAME www
请大家帮忙看看,我为什么解析不到test2.com |
|