Vah*_*hid 2 domain-name-system vps bind ptr-record
我的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, seconds
86400 ) ; minimum, seconds
; DEFINE NS RECORDS
example.com. 100 IN NS ns1.example.com.
example.com. 100 IN NS ns2.example.com.
; A RECORDS
ns1.example.com. 100 IN A 1.2.3.4
ns2.example.com. 100 IN A 1.2.3.4
example.com. 100 IN A 1.2.3.4
mail.example.com. 100 IN A 1.2.3.4
; MX RECORDS
example.com. 100 IN MX 0 mail.example.com.
; CNAME RECORDS
imap 100 IN CNAME mail.example.com.
smtp 100 IN CNAME mail.example.com.
www.example.com. IN CNAME example.com.
; TXT/SPF RECORDS
example.com. 14000 IN TXT "v=spf1 a mx ~all"
example.com. 14000 IN SPF "v=spf1 a mx ~all"
Run Code Online (Sandbox Code Playgroud)
并且/var/named/example.com.ptr.zone
是:
$TTL 3D
@ IN SOA ns1.example.com. example.com. (
2015090900 ; Serial, todays date + todays serial
6H ; Refresh
1H ; Retry
1W ; Expire
1D) ; Minimum TTL
IN NS ns1.example.com.
IN NS ns2.example.com.
$ORIGIN 3.2.1.in-addr.arpa.
4 PTR ns1.example.com.
4 PTR www.example.com.
4 PTR example.com.
Run Code Online (Sandbox Code Playgroud)
我有 VPS,正向 DNS 工作正常但反向 DNS 不起作用,gmail 将我的电子邮件检测为垃圾邮件,有什么问题?还有我启动named
服务和named-chroot
服务,是不是错了?
通常,虚拟专用服务器 (VPS) 的反向 DNS 由 Internet 托管服务管理。他们管理由互联网号码分配机构 (IANA) 分配给他们的 IP 地址网络块的 PTR 记录,并且将 DNS PTR 区域的管理委托给客户是不寻常的。
您应该要求您的主机提供商为您的 IP 地址配置 PTR 记录。或者,许多托管服务提供控制面板以允许客户自己进行配置。
归档时间: |
|
查看次数: |
671 次 |
最近记录: |