为什么 BIND DNS 区域传输更新未显示在终端屏幕上,但在日志中显示为最新?

为什么 BIND DNS 区域传输更新未显示在终端屏幕上,但在日志中显示为最新?

我已经配置了主/从区域,区域传输发生但不会显示在终端屏幕上,在终端屏幕上它仅显示通知,但是当我检查 /var/log/named 区域是否是最新的时,是有一个设置可以让它显示在屏幕上。

主控 NAMED.CONF 文件

acl internals { 192.168.102.0/24; };
options {
        listen-on port 53 { 127.0.0.1; 192.168.102.191; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        recursing-file  "/var/named/data/named.recursing";
        secroots-file   "/var/named/data/named.secroots";
        allow-transfer { 192.168.102.192; };
        allow-query     { localhost; internals; };
        recursion yes;
        dnssec-enable yes;
        dnssec-validation yes;
        bindkeys-file "/etc/named.iscdlv.key";
        managed-keys-directory "/var/named/dynamic";
        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "L00144445.local" { type master; file "L00144445.db"; allow-transfer { 192.168.102.192; }; notify yes; };

zone "102.168.192.IN-ADDR.ARPA" { type master; file "54444100L.db"; allow-transfer { 192.168.102.192; }; notify yes; };

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

正向查找文件

$TTL 10
$ORIGIN L00144445.local.
@       IN SOA ns1.L00144445.local. admin.L00144445.local. (
                                        0       ; serial
                                        10      ; refresh
                                        10      ; retry
                                        10      ; expire
                                        10 )    ; minimum
        IN NS ns1.L00144445.local.
        IN NS ns2.L00144445.local.
ns1     IN A 192.168.102.191
ns2     IN A 192.168.102.192

反向查找文件

$TTL 10
$ORIGIN 102.168.192.IN-ADDR.ARPA.
@       IN SOA ns1.L00144445.local. admin.L00144445.local. (
                                        0              ; serial
                                        10      ; refresh
                                        10      ; retry
                                        10      ; expire
                                        10 )    ; minimum
        IN NS ns1.L00144445.local.
        IN NS ns2.L00144445.local.
191     IN PTR ns1.L00144445.local.
192     IN PTR ns2.L00144445.local.

从站命名.CONF 文件

acl internals { 192.168.102.0/24; };
options {
        listen-on port 53 { 127.0.0.1; 192.168.102.192; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        recursing-file  "/var/named/data/named.recursing";
        secroots-file   "/var/named/data/named.secroots";
        allow-notify { 192.168.102.191; };
        allow-query { localhost; internals; };
        recursion yes;
        dnssec-enable yes;
        dnssec-validation yes;
        bindkeys-file "/etc/named.iscdlv.key";
        managed-keys-directory "/var/named/dynamic";
        pid-file "/run/named/named.pid";
        session-keyfile "/run/named/session.key";
};

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "L00144445.local" { type slave; masters { 192.168.102.191; }; file "L00144445.db";};

zone "102.168.192.IN-ADDR.ARPA" { type slave; masters { 192.168.102.191; }; file "54444100L.db"; allow-transfer { 192.168.102.191; }; notify yes; };

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

在此输入图像描述

相关内容