智能DNS策略解析windows版

时间:2007-06-20 00:49:17  来源:站长资讯收集整理  作者:佚名

rndc-confgen -a   (运行完成后会在etc目录下生成rndc.key)
                          rndc-confgen > ..\etc\rndc.conf
  进入etc目录,用 notepad 新建 named.conf 复制下面的内容,注意把rndc.conf中# Use with the following in named.conf, adjusting the allow list as needed: 以后的内容复制到named.conf文件中,去掉全面的#。
named.conf
######################named.conf############################

acl "trust-lan" { 127.0.0.1/8; 10.0.0.0/24;}; 
options {
        directory "C:\WINDOWS\system32\dns\etc";
        recursion no;
        version "0.0.0"; 
        allow-transfer { "trust-lan";}; 
        allow-notify { "trust-lan"; };
        auth-nxdomain no; 
        forwarders { 60.171.45.171;60.171.45.150;};  

};

#这一段内容拷贝来自rndc.conf
key "rndc-key" {
        algorithm hmac-md5;
        secret "p30d5VTh6iP+QBiVsEI0lw==";
};

controls {
        inet 127.0.0.1 port 953
                allow { 127.0.0.1; } keys { "rndc-key"; };
};
#注意在C:\WINDOWS\system32\dns\log\ 下建dns_warnings.txt dns_logs.txt
logging { 
channel warning 
{ file "C:\WINDOWS\system32\dns\log\dns_warnings.txt" versions 3 size 1240k; 
severity warning; 
print-category yes; 
print-severity yes; 
print-time yes; 
}; 

文章评论

共有 位CH网友发表了评论 查看完整内容