大网数据广告活动
服务器运维问答

Does hostmaster email needs to be in same domain as defined in zone file?

· 52CE 我爱测

I am going through Bind9 to configure DNS server for my domains, but during this process I am confused about points one of them is, when we put email address in zone file do I need to put hostmaster email address with same domain…

问题原文

原帖链接 · ppst99 · CC BY-SA 3.0

I am going through Bind9 to configure DNS server for my domains, but during this process I am confused about points one of them is, when we put email address in zone file do I need to put hostmaster email address with same domain name that I am using in zone configuration file?

For example I have created zone for "example.com". Do I then have to put xxx.example.com in forward zone file or can I put main email in all configurations?

$TTL    86400   
@   IN  SOA     ns1.example.com. myemail.gmail.com (
20081112001 ; Serial
28800   : Refresh (s)
3600    ; Retry (s)
604800  ; Expiration (s)
38400   ; Negative Cache TTL (s)
)
;
@   IN  NS  ns1
@   IN  A   127.0.0.1

已采纳解答

原帖链接 · anx · CC BY-SA 4.0

No, it does not need to be in the same domain.

However, it is very common to use hostmaster.example.com, either matching the domain part of the name server or the preferred domain of the organization/company (e.g. example.net, example.com & icann.org all use the same SOA rname).

The recommendation in RFC 2142 Section 7 conflicts with using something like a gmail address:

For simplicity and regularity, it is strongly recommended that the
well known mailbox name HOSTMASTER always be used <HOSTMASTER@domain>.

The most important question however, remains whether even when your DNS is broken your hosting providers have reliable means of contacting you.

Caveat: Just because you publish your preferred methods of contact in whois, SOA, Impressum, security.txt etc. does not mean they will be used that way. I have received inquiries to [email omitted] without ever publishing such address in the SOA record of domain.example, which is a good argument in favor of unconditionally setting up hostmaster as an alias.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-12-19)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0 / CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。