码迷,mamicode.com
首页 > 其他好文 > 详细

智能dns

时间:2017-05-16 23:33:09      阅读:182      评论:0      收藏:0      [点我收藏+]

标签:linux

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

  

智能dns

标签:linux

原文地址:http://jiaoxianyao.blog.51cto.com/11369252/1926425

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!