问题原文
原帖链接 · 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.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
