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.

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.

Photo courtesy of thierry ehrmann (Flickr).

The Question

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

Can a domain name (like have both IPv6 and IPv4 addresses? Which IP address does a domain name have, IPv6 or 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?

The Answer

SuperUser contributor Journeyman Geek has the answer for us:

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.

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.

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.

Akemi Iwaya
Akemi Iwaya has been part of the How-To Geek/LifeSavvy Media team since 2009. She has previously written under the pen name "Asian Angel" and was a Lifehacker intern before joining How-To Geek/LifeSavvy Media. She has been quoted as an authoritative source by ZDNet Worldwide.
Read Full Bio »