Skip to content
WebsiteHosting.com

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.

Sources checked · P0016

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.

Example
A 192.0.2.20

Only the requested family is returned. An answer does not predict which address a real browser will use.

One name, two address families: current state
ItemState / resultWhy it matters
Hostnamewww.example.testThe same owner name is used for both questions.
A RRset192.0.2.20Independent IPv4 records.
AAAA RRset2001:db8::20Independent IPv6 records.
Selected DNS resultA 192.0.2.20No network query occurred.
Connection fixtureAvailable in fixture onlyNot a test of the documentation address.
One name, two address families: local inputs and actions

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 conditionDNS result in the exampleConnection conclusion
A present, A questionIPv4 addressReachability has not been checked
AAAA absent, AAAA questionNOERROR / NODATANo address of that type is supplied
AAAA present, broken IPv6 pathIPv6 address is still returnedThe declared connection attempt fails separately
IPv4 value in an AAAA RRsetInvalid familyDo 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

CriterionAAAAA
Address familyIPv4IPv6
PayloadOne 32-bit addressOne 128-bit address
Example value192.0.2.252001:db8::25
DNS ownerCan be www.example.comCan be that same name
Main checkIPv4 reachability and server configurationIPv6 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.

  1. 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 .

  2. RFC 3596 — DNS Extensions to Support IPv6

    Sections 2 and 3. AAAA records and their IPv6 address data.

    Checked .

  3. RFC 5737 — IPv4 Address Blocks Reserved for Documentation

    Sections 3–4. TEST-NET IPv4 address examples are documentation-only.

    Checked .

  4. RFC 3849 — IPv6 Address Prefix Reserved for Documentation

    Sections 2–3. 2001:db8::/32 is documentation-only IPv6 space.

    Checked .