为什么rDNS反向存储IP地址?

发布于 2024-07-25 07:54:09 字数 93 浏览 2 评论 0原文

例如,指向 IP 地址 192.0.2.5 的 mail.example.com 的地址记录存储为 5.2.0.192.in-addr.arpa。 为什么要反转IP地址?

For example, an address record for mail.example.com pointing to the IP address 192.0.2.5 is stored as 5.2.0.192.in-addr.arpa. Why do we reverse the IP address?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

仙气飘飘 2024-08-01 07:54:09

在域中,最重要的部分位于右侧(例如“com”、“net”或“org”部分)。 当您向左移动时,这些部分变得不那么重要或变大,并且缩小到最后一点。

IP地址则相反; 最重要的部分(本例中为 192)位于左侧。

In a domain, the most significant part is on the right (e.g. the "com", "net" or "org" part). As you move left, the parts get less significant, or large, and narrow down to the final point.

IP addresses are the opposite; the most significant part (the 192 in this case) is at the left.

○闲身 2024-08-01 07:54:09

因为在 DNS 名称中,最重要的部分排在最后。

根域名服务器告诉您哪些域名服务器负责顶级域名 (TLD),例如 .com.org.net。 这个委托基本上会一直下降(但当然任何名称服务器都可以处理多个级别)。

因此,查找此问题的(简化)方法如下:

  • 根名称服务器告诉您哪个名称服务器负责arpa。
  • arpa。名称服务器告诉您什么名称服务器负责< code>in-addr.arpa.
  • in-addr.arpa. 名称服务器告诉您哪个名称服务器负责 192.in-addr.arpa.

现在如果我们假设 IP 地址没有反转,那么需要有一个名称服务器负责为所有以 5 结尾的 IP 地址提供反向名称查找(例如)。 由于IP 地址的最后一位数字是最低有效位(即IP 网络/类别与IP 地址的前面部分分组),这种分离没有任何意义。

Because in a DNS name the most significant part comes last.

There are Root nameservers that tell you which nameservers are responsible for the Top Level Domains (TLD) such as .com, .org, .net. And this delegation basically goes down all the way (but any nameserver could handle multiple levels of course).

So the (simplified) way to look for this is like this:

  • Root nameserver tells you what nameserver is responsible for arpa.
  • arpa. nameserver tells you what nameserver is responsible for in-addr.arpa.
  • in-addr.arpa. nameserver tells you what nameserver is responsible for 192.in-addr.arpa.

Now if we assume that the IP address was not reversed, then there would need to be a nameserver that's responsible for providing the reverse-name lookup for all IP-Addresses that end in 5 (for example). Since the last digit of the IP address is the least significant one (i.e. IP networks/classes are grouped with the earlier parts of the IP adresse) this sepration wouldn't make any sense.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文