PasteZap
🌐 简体中文
免费 · 无需注册

免费 · 网络与 IT 基础设施

反向 DNS 区域文件生成器.

根据地址和主机名列表生成包含 SOA、NS 和 PTR 记录的 in-addr.arpa 与 ip6.arpa 区域文件。

开始之前

部分技术控件使用英语。支持 Unicode 文本;文件格式和输出语言取决于具体工具。

下面以英语列出技术限制。处理大型文件或使用结果之前,请先查看这些限制。

CALCULATED IN YOUR BROWSER · NOTHING IS UPLOADED
PTR records63 zones

Zone 2.0.192.in-addr.arpa

$ORIGIN 2.0.192.in-addr.arpa.
$TTL 3600
@	IN	SOA	ns1.example.com. hostmaster.example.com. (
		2026101101	; serial
		3600		; refresh
		900		; retry
		1209600		; expire
		3600 )		; negative-cache TTL
@	IN	NS	ns1.example.com.
@	IN	NS	ns2.example.com.

10	IN	PTR	www.example.com.
11	IN	PTR	mail.example.com.
25	IN	PTR	vpn.example.com.

Zone 100.51.198.in-addr.arpa

$ORIGIN 100.51.198.in-addr.arpa.
$TTL 3600
@	IN	SOA	ns1.example.com. hostmaster.example.com. (
		2026101101	; serial
		3600		; refresh
		900		; retry
		1209600		; expire
		3600 )		; negative-cache TTL
@	IN	NS	ns1.example.com.
@	IN	NS	ns2.example.com.

4 	IN	PTR	ns1.example.com.

Zone 0.1.0.0.8.b.d.0.1.0.0.2.ip6.arpa

$ORIGIN 0.1.0.0.8.b.d.0.1.0.0.2.ip6.arpa.
$TTL 3600
@	IN	SOA	ns1.example.com. hostmaster.example.com. (
		2026101101	; serial
		3600		; refresh
		900		; retry
		1209600		; expire
		3600 )		; negative-cache TTL
@	IN	NS	ns1.example.com.
@	IN	NS	ns2.example.com.

5.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0	IN	PTR	mail.example.com.
0.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0	IN	PTR	www.example.com.
  • Reverse zones are delegated by whoever controls the address block, usually your ISP, hosting provider or regional registry. Ask them to delegate the zone to your name servers or to publish the PTR records for you.
  • IPv4 blocks smaller than a /24 use classless delegation (RFC 2317) with CNAME records at the provider; this generator writes the full /24 zone.
  • Check the files with named-checkzone before loading them.

使用方法: 反向 DNS 区域文件生成器

输入数据或选择文件,调整设置并生成结果。复制或下载之前,请检查结果。

限制与支持格式

输入内容在您的设备上处理。

英语技术说明

IPv4 zones are /8, /16 or /24; classless (RFC 2317) delegation for smaller blocks is not generated. Up to 10,000 records. Everything is calculated in your browser; nothing is sent or probed on the network.

Each address is reversed into its PTR name and grouped by zone; owner names are written relative to $ORIGIN. The serial defaults to today in YYYYMMDDnn form.

192.0.2.10 www.example.com becomes “10 IN PTR www.example.com.” in the zone 2.0.192.in-addr.arpa.