listen-on port 53 { any; }; listen-on-v6 port 53 { any; }; allow-query { any; };
5.在bind的主配置文件中添加该域
# vi /etc/named.rfc1912.zoneszone "baidu.com" IN{ type master; file "baidu.com.zone"; }; zone "doiido.com" IN{ type master; file "doiido.com.zone"; }; zone "1.10.in-addr.arpa" IN { type master; file "1.10.zone"; };
$TTL 86400 @ IN SOA ns.baidu.com. root ( 1 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ IN NS ns.baidu.com. ns IN A 115.239.211.110 www IN A 115.239.211.110
$TTL 86400 @ IN SOA ns.doiido.com. root ( 1 ; serial 1D ; refresh 1H ; retry 1W ; expire 3H ) ; minimum @ IN NS ns.doiido.com. ns IN A 1.1.1.1 www IN A 1.1.1.1
$TTL 86400 @ IN SOA ns.doiido.com. ns.baidu.com. ( 12 ; serial 28800 ; refresh 14400 ; retry 3600000 ; expire 86400 ) ; minimum @ IN NS ns.doiido.com. 1 IN PTR www.doiido.com. 110 IN PTR www.baidu.com.
# service named restart
原文地址:http://blog.csdn.net/doiido/article/details/43967151