comparison Domains & DNS
DNS A and AAAA records
Compare DNS A and AAAA records by address family, check both sets independently and avoid assuming IPv6 always works.
What it means
DNS A records contain IPv4 addresses and AAAA records contain IPv6 addresses. They answer different queries, so a site can have one, both or neither for a particular hostname. Publishing an address is not proof that an application listens, TLS identifies the hostname, or clients can reach the destination. A records AAAA records
Try it
Example — compare the requested record with a separate network path. Choose A or AAAA, make either RRset present or absent, and inspect a valid or invalid address fixture. The result changes locally; no address is queried or contacted.
One name, two address families
Ask for one RRset while keeping DNS presence separate from connection success.
Only the requested family is returned. An answer does not predict which address a real browser will use.
| Item | State / result | Why it matters |
|---|---|---|
| Hostname | www.example.test | The same owner name is used for both questions. |
| A RRset | 192.0.2.20 | Independent IPv4 records. |
| AAAA RRset | 2001:db8::20 | Independent IPv6 records. |
| Selected DNS result | A 192.0.2.20 | No network query occurred. |
| Connection fixture | Available in fixture only | Not a test of the documentation address. |
Documentation-only addresses. No real DNS or connection attempt; not a general IP validator.
About this model
A supplies IPv4 data and AAAA supplies IPv6 data. The name www.example.test remains present because the fixture also contains TXT data, even when both address sets are absent. Family validation here accepts only the shown documentation subset. Browser connection racing and address sorting are outside the model.
Read the article’s primary sources for protocol rules and implementation-specific limits. This scene has no network access.
The normal fixture returns 192.0.2.20 for A and 2001:db8::20 for AAAA at the same hostname. Remove the AAAA RRset while leaving A present. An AAAA question now has no requested data, but the A question still has its answer. Even when both address sets are absent, the fixture keeps the name present through separate TXT data, so it does not change to NXDOMAIN.
| Selected condition | DNS result in the example | Connection conclusion |
|---|---|---|
| A present, A question | IPv4 address | Reachability has not been checked |
| AAAA absent, AAAA question | NOERROR / NODATA | No address of that type is supplied |
| AAAA present, broken IPv6 path | IPv6 address is still returned | The declared connection attempt fails separately |
| IPv4 value in an AAAA RRset | Invalid family | Do not proceed as though a valid AAAA answer exists |
The validation presets also include a malformed value. They exercise only a bounded documentation-address subset, not every valid IP spelling. Reset restores both RRsets, a working synthetic IPv6 path and the A question. Browser address sorting and connection racing are intentionally absent, so the example does not predict which address a real browser will try first. A format AAAA format
Compare the two record types
| Criterion | A | AAAA |
|---|---|---|
| Address family | IPv4 | IPv6 |
| Payload | One 32-bit address | One 128-bit address |
| Example value | 192.0.2.25 | 2001:db8::25 |
| DNS owner | Can be www.example.com | Can be that same name |
| Main check | IPv4 reachability and server configuration | IPv6 reachability and server configuration |
A record set may contain multiple addresses. Having a syntactically valid AAAA record does not mean the IPv6 endpoint is reachable from the public Internet or configured to serve the hostname. Equally, deleting AAAA simply to hide a routing problem may harm clients that use IPv6; investigate first.
A reachable IPv4 endpoint with a broken IPv6 route
Consider synthetic answers www.example.test A 192.0.2.10 and www.example.test AAAA 2001:db8::10. A client with suitable connectivity may select IPv6; another may use IPv4. If the IPv6 destination has no working web service, a successful A test does not establish that every visitor reaches the site. Removing AAAA without checking the intended IPv6 service could also break functioning users. A and AAAA describe address families and mapping, not an application-level health promise. Documentation ranges here are examples only, not live endpoints. IPv4 example range IPv6 example prefix
In practice
Compare the same hostname and type family at authority and a named resolver, then test the relevant service over each family under permission. Confirm both TLS hostnames and application behavior. Change only the record family supported by your actual destination; use before-state and verification rather than treating one successful family as complete.
For connection setup consult Connect a domain to a website. If the site only fails for certain visitors, follow A website works for some visitors only, not an assumption that either address family must always win.
Key takeaways
Treat A and AAAA as separate routes to investigate. A good DNS answer is one input to connectivity; verify the actual endpoint for each advertised family before claiming web availability.
Frequently asked questions
Editorial questions, answered from the sources listed for this article.
Is an AAAA record a longer version of A?
No. A contains an IPv4 address and AAAA contains an IPv6 address with a different wire format and query type.
Must a hostname publish both A and AAAA?
No. The appropriate records depend on the service and its supported network families.
Does an A record decide whether HTTPS is valid?
No. It maps a name to an address; certificate identity and service configuration are separate checks.
Can the example addresses be used as production servers?
No. The addresses shown are reserved for documentation, not usable public destinations for this exercise.
Sources & model boundaries
Primary references used for this explanation. The interactive example is an educational model, not a live check.
- RFC 1035 — Domain Names: Implementation and Specification
Sections 3.2, 3.3 and 4. RR formats, TTL, A, NS, SOA, CNAME and MX records.
Checked .
- RFC 3596 — DNS Extensions to Support IPv6
Sections 2 and 3. AAAA records and their IPv6 address data.
Checked .
- RFC 5737 — IPv4 Address Blocks Reserved for Documentation
Sections 3–4. TEST-NET IPv4 address examples are documentation-only.
Checked .
- RFC 3849 — IPv6 Address Prefix Reserved for Documentation
Sections 2–3. 2001:db8::/32 is documentation-only IPv6 space.
Checked .