Bind9 仅在本地工作

Bind9 仅在本地工作

我正在尝试使用 apache2 创建多个站点,但我需要域来 ping 它,因此我正在尝试使用 Bind9 来托管 dns。

问题是 DNS 只能在本地 ping!为什么?

如果有人知道如何解决这个问题,请告诉我!

这是我的 named.conf.option:`options { 目录“/var/cache/bind”;

    // If there is a firewall between you and nameservers you want
    // to talk to, you may need to fix the firewall to allow multiple
    // ports to talk.  See http://www.kb.cert.org/vuls/id/800113

    // If your ISP provided one or more IP addresses for stable
    // nameservers, you probably want to use them as forwarders.
    // Uncomment the following block, and insert the addresses replacing
    // the all-0's placeholder.

    forwarders {
            1.2.3.4;
            5.6.7.8;
    };

    //========================================================================
    // If BIND logs error messages about the root key being expired,
    // you will need to update your keys.  See https://www.isc.org/bind-keys
    //========================================================================
    dnssec-validation no;

    listen-on-v6 { any; };
    listen-on { any; };
    allow-query-cache { any; };

    acl trusted {
            192.168.1.0/24;  // Local network
            10.0.0.0/8;     // Another local network
    };

    allow-query { trusted; };

}; `

解析.conf: nameserver 185.229.236.154 search rewardads.net domain rewardads.net

db.rewardads.net:`$TTL 86400 @ IN SOA dns.rewardads.com.root.dns.rewardads.net。(2023110901;序列号 3600;刷新 1800;重试 604800;过期 86400);最小 TTL

    IN      NS      dns.rewardsads.net.

DNS 在 185.229.236.154`

相关内容