我的IP地址是1.2.3.4(邮件和dns服务器的单一IP),我的域名是example.com,我使用Centos 7并绑定9命令输出:
`host 1.2.3.4`
Run Code Online (Sandbox Code Playgroud)
是:
`Host 4.3.2.1.in-addr.arpa. not found: 3(NXDOMAIN)`
Run Code Online (Sandbox Code Playgroud)
我的/etc/named.zones是:
zone "example.com" {
type master;
file "/var/named/example.com.zone";
allow-query { any; };
allow-transfer { slaves; };
};
zone "3.2.1.in-addr.arpa" {
type master;
notify no;
file "/var/named/example.com.ptr.zone";
allow-query { any; };
allow-transfer { slaves; };
};
Run Code Online (Sandbox Code Playgroud)
并且/var/named/example.com.zone是:
; Zone file for example.com
@ 100 IN SOA ns1.example.com. admin.example.com. (
2015052700 ; serial, todays date+todays
28800 ; refresh, seconds
7200 ; retry, seconds
2419200 ; expire, …Run Code Online (Sandbox Code Playgroud)