域名 ipv6地址_域名可以同时具有IPv6和IPv4地址吗?

时间:2024-04-06 09:41:12
域名 ipv6地址_域名可以同时具有IPv6和IPv4地址吗?

域名 ipv6地址

域名 ipv6地址_域名可以同时具有IPv6和IPv4地址吗?

As you learn more about domain names and how the system works, you may find yourself wondering if domain names have both IPv6 and IPv4 addresses. With that in mind, today’s SuperUser Q&A post has the answers to a curious readers questions.

当您了解有关域名以及系统如何工作的更多信息时,您可能会想知道域名是否同时具有IPv6和IPv4地址。 考虑到这一点,今天的SuperUser Q&A帖子回答了一个好奇的读者问题。

Today’s Question & Answer session comes to us courtesy of SuperUser—a subdivision of Stack Exchange, a community-driven grouping of Q&A web sites.

今天的“问答”环节由SuperUser提供,它是Stack Exchange的一个分支,该社区是由社区驱动的Q&A网站分组。

Photo courtesy of thierry ehrmann (Flickr).

图片由thierry ehrmann(Flickr)提供

问题 (The Question)

SuperUser reader Niks wants to know if domain names have both IPv6 and IPv4 addresses:

超级用户阅读器Niks想知道域名是否同时具有IPv6和IPv4地址:

Can a domain name (like example.com) have both IPv6 and IPv4 addresses? Which IP address does a domain name have, IPv6 or IPv4?

域名(例如example.com)可以同时具有IPv6和IPv4地址吗? 域名具有哪个IP地址(IPv6或IPv4)?

I am honestly not sure that a domain name has both, or any one, at a given time.

老实说,我不确定域名在给定的时间是否同时拥有这两个域名。

Can domain names have both IPv6 and IPv4 addresses?

域名可以同时具有IPv6和IPv4地址吗?

答案 (The Answer)

SuperUser contributor Journeyman Geek has the answer for us:

超级用户贡献者Journeyman Geek为我们提供了答案:

Sure. You have an A Record (for IPv4) and an AAAA Record (for IPv6). Typically the AAAA Record gets resolved first, then the A Record.

当然。 您有一个A记录 (对于IPv4)和一个AAAA记录 (对于IPv6)。 通常,首先解析AAAA记录 ,然后解析A Record

You can either have just an A Name (IPv4-only host), an AAAA Name (IPv6-only host), or both. You could even have different servers for both. You could even have multiple A and AAAA Names (for different dual-stack or a mixture of IPv4 and IPv6) servers.

您可以仅具有一个A名称 (仅IPv4主机),一个AAAA名称 (仅IPv6主机),或同时具有这两个名称。 您甚至可以为这两者使用不同的服务器。 您甚至可以拥有多个AAAAA名称 (用于不同的双协议栈或IPv4和IPv6的混合)服务器。

Make sure to read through the rest of this interesting discussion via the thread link shared below!

确保通过下面共享的线程链接通读本有趣的讨论的其余部分!



Have something to add to the explanation? Sound off in the comments. Want to read more answers from other tech-savvy Stack Exchange users? Check out the full discussion thread here.

有什么补充说明吗? 在评论中听起来不错。 是否想从其他精通Stack Exchange的用户那里获得更多答案? 在此处查看完整的讨论线程

翻译自: https://www.howtogeek.com/232864/can-a-domain-name-have-both-ipv6-and-ipv4-addresses/

域名 ipv6地址