您的位置:首页 > 运维架构 > Linux

智能dns

2017-05-16 20:17 148 查看
acl inet {

172.16.0.0/16;
192.168.1.0/24;};

allow-query {inet;};
none;
any;

智能DNS
view

view VIEW_NAME {

};
所有的区域都必须定义在视图中
zone "."定义在需要递归的区域中

acl telecom { 172.16.0.0/16;127.0.0.0/8;};
acl unicom { 192.168.0.0/24;0.0.0.0/0;};
options {
directory "/var/named";
recursion yes;
querylog yes;
};
view telecom {
match-clients {telecom;};
zone "a.com" {
type master;
file telecom.a.com.zone;};
};
view unicom {
match-clients { unicom;};
zone "a.com" {
type master;
file unicom.a.com.zone;};
};

view any {
match-clients {any;};
zone "a.com"; {
type master;
file any.zone;};
};

addtional options vor vebos output
1.print-severity
2.print-category
3.print-time
channel:日志保存位置
1、syslog
2、file:自定义保存日志信息的文件
#channel "fefault syslog" {syslog daemon;severity info;}
category
日志源:查询
区域传送
自定义日志来源
共15类:xfer-in
xfer-out
queries

config
notify
network
general
client
security
例:
logging {
channel my_file {
file "msgs.log" versions 3 size 10k;
severity info;
print-time yes;
};
channel my_syslog {
syslog local0;
severity debug;
};
category xfer-in {my_file;};
category config {my_syslog;};
};
dns工具:
queryperf
dnstop
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux