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

How do I set up a reverse zone file?

· 52CE 我爱测

I have this zone file in bind: $TTL 86400 mysite.net. IN SOA ns1.mysite.net. admin.mysite.net. ( 2006012008 86400 3600 604800 86400 ) mysite.net. IN NS ns1.mysite.net. mysite.net. IN NS ns2.mysite.net. mysite.net. IN A 1.2.3.4 ww…

问题原文

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

I have this zone file in bind:

        $TTL 86400
        mysite.net. IN SOA ns1.mysite.net. admin.mysite.net. (
        2006012008
        86400
        3600
        604800
        86400
        )
        mysite.net.      IN      NS      ns1.mysite.net.
        mysite.net.      IN      NS      ns2.mysite.net.
        mysite.net.      IN      A       1.2.3.4
        www.mysite.net.  IN      A       1.2.3.4
        mail.mysite.net.  IN      A      1.2.3.4
        newsite.mysite.net.  IN      A      1.2.3.4
        shop.mysite.net.  IN      A       101.102.103.104
        mysite.net.      IN      MX      30 mail.mysite.net.
        ns1                   IN      A      1.2.3.4
        ns2                   IN      A      1.2.3.4

I need a reverse zone file. How do I create this, and how do I put it in named.conf?

I have a dedicated server with one assigned IP address.

EDIT

IP and hostname are only for example

社区高分解答

原帖链接 · Shane Madden · CC BY-SA 4.0

Reverse DNS lookups for IPv4 use a reversed IP address (to work within the hierarchical structure of DNS) in the zone in-addr.arpa.

So to provide answers to queries against, for instance, 192.0.2.0, a DNS server should answer for 0.2.0.192.in-addr.arpa.

However, it's unlikely that your hosting company has delegated to your server for that address, since the smallest normal DNS parent domain that your address is in a /24.

You may be able to contact your host and get them to delegate the /32 address to your DNS server via the method in RFC 2317, but it's simpler and more likely to be supported by your host to just have them set the record to what you want it to be.

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

资料来源与适用范围

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

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

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