标签Bind9下的文章

Arno 发布于 12月21, 2017

BIND DNS 日志声明语法

日志记录语句语法

logging {
    [ channel channel_name {
        ( file path_name
          [ versions ( number | unlimited ) ]
          [ size size_spec ]
        | syslog syslog_facility
        | stderr
        | null );
        [ severity (critical | error | warning | notice | info | debug [ level ] | dynamic ); ]
        [ print-category yes or no; ]
        [ print-severity yes or no; ]
        [ print-time yes or no; ]
    }; ]
    [ category category_name {
        channel_name ; [ channel_name ; ... ]
    }; ]
    ...
};

阅读全文 »

Arno 发布于 12月12, 2017

Bind9 zone 文件格式化说明

本文涵盖了 Bind DNS Zone 示例文件,并针对SOA记录做了详细介绍。

zone 文件示例

    ; zone file fragment for mytest.cn
    ;$TTL 600

    $ORIGIN mytest.cn.

    ; SOA record
    ; owner-name ttl class rr      name-server      email-addr  (sn ref ret ex min)
    @                 IN   SOA     ns1.mytest.cn.   root.mytest.cn. (
                        2017031088 ; sn = serial number
                        3600       ; ref = refresh = 20m
                        180        ; uret = update retry = 1m
                        1209600    ; ex = expiry = 2w
                        10800      ; nx = nxdomain ttl = 3h
                        )
    ; type syntax
    ; host ttl class type data

    ; NS records
    @  86400  IN  NS  ns1.mytest.cn.
    @  86400  IN  NS  ns2.mytest.cn.

    ; A records
    ns1  600  IN  A  10.10.8.1
    ns2  600  IN  A  10.10.8.2

阅读全文 »