在 DNS 视图上绑定通知

在 DNS 视图上绑定通知

我已配置了两个基于 Cent OS 的 DNS 服务器,一个为主服务器,一个为从服务器,具有域的内部和外部视图。问题是,当我在主服务器上执行重新加载时,我收到的通知和自动区域更新仅适用于内部视图,而不适用于外部视图。

有什么帮助吗?

我遗漏了什么吗?

谢谢

主控的选项文件:

    options {

    directory "/var/named";

    listen-on port 53 { 127.0.0.1; master; };

    version "None of your business"; 
    server-id "None of your business";
    hostname "None of your business";
    blackhole {badips;};
    auth-nxdomain no;

    transfers-in 3;
    transfers-per-ns 3;
    transfers-out 9;

    recursion yes;
    allow-recursion {127.0.0.1; internals;};

    allow-query {any;};

    allow-transfer {127.0.0.1; slave;};

    max-transfer-time-in 60;

    rate-limit {

        responses-per-second 3;
        window 5;
        log-only yes;
        exempt-clients {mail-ad; slave; };

    };
};

从站的选项文件:

    options {

    directory "/var/named";

    listen-on port 53 { 127.0.0.1; slave; };

    version "None of your business"; 
    server-id "None of your business";
    hostname "None of your business";
    blackhole {badips;};
    auth-nxdomain no;

    transfers-in 3;
    transfers-per-ns 3;
    transfers-out 9;

    recursion yes;
    allow-recursion {127.0.0.1; internals;};

    allow-transfer {127.0.0.1; master;};

    max-transfer-time-in 60;

    allow-query {any;};

    rate-limit {

        responses-per-second 3;
        window 5;
        log-only yes;
        exempt-clients {mail-ad; master; };

    };
};

主人的看法:

    view domain.com-external {

    match-clients {external;};

    zone "domain.com." IN {
        type master;
        file "/etc/named/db.domain.com.external.hosts";
        notify yes;
        also-notify {slave;};
    };

};

view domain.com-internal {

    match-clients {internals;};

    zone "domain.com." IN {
        type master;
        file "/etc/named/db.domain.com.internal.hosts";
        notify yes;
    };

    zone "." IN {
        type hint;
        file "/etc/named/db.root";

    };

    zone "localhost" IN {
        type master;
        file "/etc/named/db.local";

    };

    zone "127.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.127";

    };

    zone "0.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.0";

    };

    zone "255.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.255";

    };

    zone "10.in-addr.arpa"      { type master; file "/etc/named/db.empty"; };
    zone "16.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "17.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "18.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "19.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "20.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "21.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "22.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "23.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "24.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "25.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "26.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "27.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "28.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "29.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "30.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "31.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "168.192.in-addr.arpa" { type master; file "/etc/named/db.empty"; };


};

奴隶的观点:

v

iew domain.com-external {

    match-clients {external;};

    zone "domain.com." IN {
        type slave;
        masters {master;};
        file "slaves/db.domain.com.external.hosts";
        notify yes;
    };

};

view domain.com-internal {

    match-clients {internals;};

    zone "domain.com." IN {
        type slave;
        masters {masters;};
        file "slaves/db.domain.com.internal.hosts";
        notify yes;

    };

    zone "." IN {
        type hint;
        file "/etc/named/db.root";

    };

    zone "localhost" IN {
        type master;
        file "/etc/named/db.local";

    };

    zone "127.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.127";

    };

    zone "0.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.0";

    };

    zone "255.in-addr.arpa" IN {
        type master;
        file "/etc/named/db.255";

    };

    zone "10.in-addr.arpa"      { type master; file "/etc/named/db.empty"; };
    zone "16.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "17.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "18.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "19.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "20.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "21.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "22.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "23.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "24.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "25.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "26.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "27.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "28.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "29.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "30.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "31.172.in-addr.arpa"  { type master; file "/etc/named/db.empty"; };
    zone "168.192.in-addr.arpa" { type master; file "/etc/named/db.empty"; };


};

相关内容