options { directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; // lame-ttl 0; }; include "/etc/rndc.key"; //初始的是这样的 //zone "." IN { // type hint; // file "named.root"; //}; //我觉得关键是在这里 zone "." IN { type forward; forward only; forwarders { a.b.c.d; }; }; zone "localdomain" IN { type master; file "localhost.zone"; allow-update { none; }; }; zone "localhost" IN { type master; file "localhost.zone"; allow-update { none; }; }; zone "x.y.com.cn" IN { type master; file "x.y.com.cn.zone"; allow-update { none; }; }; zone "0.0.127.in-addr.arpa" IN { type master; file "named.local"; allow-update { none; }; }; zone "xxx.xxx.xx.in-addr.arpa" IN { type master; file "xxx.xxx.xx.in-addr.arpa"; allow-update { none; }; }; |
欢迎光临 Chinaunix (http://bbs.chinaunix.net/) | Powered by Discuz! X3.2 |