昊漫玉 发表于 2015-5-6 10:18:44

bind 9.32 for windows 2003 设置智能dns服务器 出现问题

#111111######named.conf#######
#acl "trust-lan" { 220.57.0.0/20;};
options {
directory "c:\windows\system32\dns\etc";
allow-transfer { none; };
pid-file "named.pid";
allow-query { any; };


recursion yes;
auth-nxdomain yes;
transfer-format one-answer;
version "0.0.0";
forwarders { 121.194.2.3;};
};

#这一段内容拷贝来自rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
key "rndc-key" {
algorithm hmac-md5;
secret "1wX8EPR8V50cvyYx9tbL1Q==";
};

controls {
inet 127.0.0.1 port 953
allow { 127.0.0.1; } keys { "rndc-key"; };
};
# End of named.conf


#注意在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;
};


channel general_dns
{ file "C:\WINDOWS\system32\dns\log\dns_logs.txt" versions 3 size 1240k;
severity info;
print-category yes;
print-severity yes;
print-time yes;
};
category default { warning; };
category queries { general_dns; };
};




#将CERNET的地址范围数据装载
include "acl.conf";

# 判断如果是CERNET的地址范围,则会执行此处,调用CERNET的解析
view "view_cernet" {
match-clients { CERNET; };

zone "sbss.edu.cn" {
type master;
file "cernet.sbss.edu.cn.txt";
};

};

# 如果不是CERNET的则进行电信的解析
view "view_any" {
match-clients { any; };

zone "sbss.edu.cn" {
type master;
file "tel.sbss.edu.cn.txt";
};

};
#111111111######end named.conf#######
页: [1]
查看完整版本: bind 9.32 for windows 2003 设置智能dns服务器 出现问题