反向DNS到未知主机名的问题

我在dns健康pingtesting它。 Pingdom给了我这个错误信息;

Reverse for 192.0.2.4 points to an unknown host name (192-0-2-4.rev.example.invalid). The PTR record for the address points to an unknown host name. 

我的named.conf.local文件;

  zone "example.com"{ type master; file "/etc/bind/zones/db.example.com"; }; zone "2.0.192.in-addr.arpa"{ type master; file "/etc/bind/zones/db.2.0.192"; 

};

我的区域/ db.2.0.192文件;

  ; ; BIND reverse data file for local loopback interface ; $TTL 604800 @ IN SOA example.com. root.example.com. ( 2016103001 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL @ IN NS ns1.example.com. @ IN NS ns2.example.com. ;ns1.example.com. IN A 192.0.2.4 ;ns2.example.com. IN A 192.0.2.4 ;example.com. IN NS ns1.example.com. ;example.com. IN NS ns2.example.com. 2.0.192.in-addr.arpa. IN PTR example.com. 2.0.192.in-addr.arpa. IN PTR ns1.example.com. 2.0.192.in.addr.arpa. IN PTR ns2.example.com. 

我的zones / db.example.com文件;

  $TTL 86400 @ IN SOA ns1.example.com. root.example.com. ( 3 ; Serial 604800 ; Refresh 86400 ; Retry 2419200 ; Expire 604800 ) ; Negative Cache TTL example.com. IN NS example.com. example.com. IN A 192.0.2.4 www.example.com. IN A 192.0.2.4 ns1.example.com. IN A 192.0.2.4 ns2.example.com. IN A 192.0.2.4 example.com. IN NS ns1.example.com. example.com. IN NS ns2.example.com. cdn.example.com. IN CNAME xx.xx.example.com. ; MX records @ IN MX 1 mx.example.com. @ IN MX 2 mx2.example.com. 

我也运行这个命令; 服务bind9状态

给出这个信息;

  bind9.service - BIND Domain Name Server Loaded: loaded (/lib/systemd/system/bind9.service; enabled) Drop-In: /run/systemd/generator/bind9.service.d └─50-insserv.conf-$named.conf Active: active (running) since Tue 2017-01-03 23:15:31 CET; 7s ago Docs: man:named(8) Process: 29801 ExecStop=/usr/sbin/rndc stop (code=exited, status=0/SUCCESS) Main PID: 29806 (named) CGroup: /system.slice/bind9.service └─29806 /usr/sbin/named -f -u bind Jan 03 23:15:32 jtx named[29806]: zone 127.in-addr.arpa/IN: loaded serial 1 Jan 03 23:15:32 jtx named[29806]: zone example.com/IN: loaded serial 3 Jan 03 23:15:32 jtx named[29806]: /etc/bind/zones/db.2.0.192:33: ignoring out-of-zone data (3.2.1.in.addr.arpa) Jan 03 23:15:32 jtx named[29806]: zone 255.in-addr.arpa/IN: loaded serial 1 Jan 03 23:15:32 jtx named[29806]: zone 2.0.192.in-addr.arpa/IN: loaded serial 2016103001 Jan 03 23:15:32 jtx named[29806]: zone localhost/IN: loaded serial 2 Jan 03 23:15:32 jtx named[29806]: all zones loaded Jan 03 23:15:32 jtx named[29806]: running Jan 03 23:15:32 jtx named[29806]: zone example.com/IN: sending notifies (serial 3) Jan 03 23:15:32 jtx named[29806]: zone 2.0.192.in-addr.arpa/IN: sending notifies (serial 2016103001) 

这些是文件内容。 我不擅长DNSpipe理。 我正在使用Debian操作系统和Bind9 DNSpipe理器。 我确定文件中有很多错误。

预先感谢您的帮助。

– 更新

我也检查这个命令;

  dig -x 192.0.2.4 

返回;

  ;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 4096 ;; QUESTION SECTION: ;4.2.0.192.in-addr.arpa. IN PTR ;; ANSWER SECTION: 1.2.3.in-addr.arpa. 83415 IN PTR 4.2.0.192.rev.poneytelecom.eu. ;; AUTHORITY SECTION: 192.0.2.in-addr.arpa. 83415 IN NS nsb.online.net. 192.0.2.in-addr.arpa. 83415 IN NS nsa.online.net. 

您会收到指向未知主机名的消息,因为192-0-2-4.rev.example.invalid没有任何DNSlogging,并且不指向任何IP。

在粘贴时,PTR的名称服务器是nsb.online.net和nsa.online.net,因此这些名称服务器是负责定义PTRlogging值的名称服务器。

您或者需要询问ISP / Hosting提供商,将PTRlogging更改为具有匹配的Alogging的主机名,或者要求他们为2.0.192.in-addr.arpa设置名称服务器。 到服务器的IP地址,如果你想自己定义PTRlogging的话,你可以在你的post中粘贴2.0.192.in-addr.arpa区域。