- 5
- 0
- 约4.38千字
- 约 5页
- 2017-02-16 发布于江苏
- 举报
BIND DNS 配置配置要求
首先,找到主配置文件named.conf,然后查看主配置文件,由于各现场主配置文件存放的路径不同,所以,就需要工程人员自己查找文件了;
下面以广东现场为例,说明如下:
bash-2.05# more named.conf
/*
* This configuration file confirms to the syntax of Bind 9.3.2
*/
/*
* Bsic conf:
*/
options {
directory /var/named; //该行为配置项必须的,指定bind的工作目录
allow-transfer { localhost; 211.136.17.97; }; // append backup name server ip after the localhost
recursive-clients 20480;
tcp-clients 1024;
max-ncache-ttl 3600;
lame-ttl 1200;
pid-file /var/named/named.pid;
statistics-file /data/nms/rndc_log/named.stats; // statistics-file表示统计文件;named.stats为统计文件名;该行蓝色部分为必须配置的;
zone-statistics yes; //该行为必须配置的,且配为 YES
allow-recursion {
202.38.0.0/16;
211.99.0.0/16;
211.103.0.0/16;
210.75.0.0/16;
211.136.0.0/16;
211.137.0.0/16;
211.138.0.0/16;
211.139.0.0/16;
211.140.0.0/16;
211.141.0.0/16;
211.142.0.0/16;
211.143.0.0/16;
218.200.0.0/16;
218.201.0.0/16;
218.202.0.0/16;
};
};
logging {
category lame-servers { null; }; // dont log these at all
channel moderate_debug {
severity debug 1; // level 1 debugging to file
file /var/namedrlog/named_211.136.20.193.run versions 10 size 50m;
print-time yes; // timestamp log entries,必配行
print-category yes; // print category name,必配行
print-severity yes; // print severity level,必配行
};
/*
*DNS clients query loaging
*/
channel query_log {
原创力文档

文档评论(0)