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

An A record associates a DNS name with an IPv4 address. An AAAA record associates a DNS name with an IPv6 address. They are separate DNS record types: one hostname can publish A records, AAAA records, both or neither. DNS provides candidate addresses; reachability, network selection and the web server's listening configuration determine whether a connection succeeds. A record AAAA record

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.

In practice

When some visitors can open a site and others cannot, compare A and AAAA answers separately and ask whether the origin or CDN listens on both advertised address families. A DNS response alone cannot show the HTTP status, TLS certificate or network route. Obtain actual approved destination addresses from the hosting provider and validate HTTPS for the intended hostname before changing records.

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

A and AAAA answer different address-family questions about the same name. Validate the family of the data and test reachability separately. A correct AAAA record cannot repair an IPv6 path, and a missing AAAA RRset is not evidence that the whole name is absent.

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 .