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

How to confirm who is responsible for serving reverse DNS (PTR) requests an IP block?

· 52CE 我爱测

Before anyone answers "ask your ISP" or "ask your hosting provider", please read in full. Scenario: I own a domain name mydomain.example , and a publically routed IP block (say 192.0.2.0/28 ) The NS records (GLUE) for this domain…

问题原文

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

Before anyone answers "ask your ISP" or "ask your hosting provider", please read in full.

Scenario:

  • I own a domain name mydomain.example, and a publically routed IP block (say 192.0.2.0/28)
  • The NS records (GLUE) for this domain are configured at my registrar - ns1.mydomain.example and ns2.mydomain.example which point to my servers (self-hosted DNS servers)
  • Reverse DNS for my publically routed IP block are served by the same servers This is so I can update the reverse dns entries for my IPs at my leisure on my equipment.

Problem: I went to migrate DNS hosting for my domain (mydomain.example) from my own servers to cloudflare, deciding it isn't worth the hassle to DIY-host it. I have done this several times before with identical setups and experienced no ill effects.

However, when the NS records updated to cloudflare's, I found my reverse DNS completely stopped working.

Question: What / who determines who is answering the queries for the reverse DNS for my IP block? It was my understanding that typically, forward DNS and reverse DNS are done independently of each other so I wasn't expecting the migration of the forward lookup name servers from the self-hosted infrastructure -> cloudflare to torch reverse DNS lookup.

It was my understanding that the entity that answers your forward dns (cloudflare) is independent of the one answering your reverse DNS (e.g. your hosting provider, ISP etc). But, how can I confirm who is really responsible for this - like I would for my forward DNS? I can do a % dig +short mydomain.example NS to confirm which servers are responsible for forward DNS queries, what is the procedure to figure out who is responsible for the reverse DNS of an IP address(es) that I am using?

社区高分解答

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

If your ip address were 192.0.2.4 and you were using nslookup you'd run the following:

set q=ns

4.2.0.192.in-addr.arpa

This would show you the name servers responsible for the ip address block in which your ip address exists.

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

资料来源与适用范围

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

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

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