Bind9 无法解析名称

Bind9 无法解析名称

我需要设置 Bind9 来解析一个特定名称。我按照一些教程操作,但最后我无法使用另一台机器上的简单 nslookup 解析该名称。

我的 /etc/bind/named.conf.local

zone "privatelink.file.core.windows.net" {
        type master;
        file "/etc/bind/forward.privatelink.file.core.windows.net";
        allow-transfer {
                10.10.2.8;
        };
};


zone "168.168.192.in-addr.arpa" {
        type master;
        file "/etc/bind/reverse.privatelink.file.core.windows.net";
};

我的 forward.privatelink.file.core.windows.net

  GNU nano 4.8                                                                               /etc/bind/forward.privatelink.file.core.windows.net                                                                                         
;
; BIND data file for local loopback interface
;
$TTL    604800
@       IN      SOA     privatelink.file.core.windows.net. root.privatelink.file.core.windows.net. (
                              2         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@                       IN      NS      privatelink.file.core.windows.net.
files                   IN      A       10.10.2.8
@                       IN      A       127.0.0.1
@                       IN      AAAA    ::1

进而

反向.privatelink.file.core.windows.net

  GNU nano 4.8                                                                               /etc/bind/reverse.privatelink.file.core.windows.net                                                                                         
;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     privatelink.file.core.windows.net. root.privatelink.file.core.windows.net. (
                              1         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      localhost.
1.0.0   IN      PTR     localhost.
files   IN      A       10.10.2.8

我到底做错了什么?这就是我得到的回报。

nslookup files.privatelink.file.core.windows.net 192.168.168.233
Server:  UnKnown
Address:  192.168.168.233

*** UnKnown can't find files.privatelink.file.core.windows.net: Non-existent domain

相关内容