# How to Set A and AAAA Records Safely

https://ferkesh.net/zh/knowledgebase/article/configure-a-aaaa-records

![Diagram linking Hostname, IPv4 A, IPv6 AAAA and Web response.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-02.svg#configure-a-aaaa-records)

An A record maps a hostname to an IPv4 address. An AAAA record maps a hostname to an IPv6 address. Each publishes a destination for the same service. If visitors see an old site only on some networks, an outdated AAAA value is one thing to check alongside the A value.

## Point the exact hostname

Start with the addresses supplied for the website by your hosting provider. A DNS provider may call the root name @, leave it empty, or ask for the full hostname. A subdomain such as shop.example.com normally uses a separate name field. Export the previous values and TTL before editing. Add an AAAA record only when your hosting service, certificate and network path support the IPv6 endpoint.

## Verify each path

Check A and AAAA separately at your authoritative DNS service, then look for the same answers through a recursive resolver. Example documentation addresses are 192.0.2.10 for IPv4 and 2001:db8::10 for IPv6. Those are placeholders and cannot serve your website. Open the website over both address families where you have access, and check the final hostname and certificate as well as the page content.

## If the replacement shows a default site

Confirm the web host has attached the requested hostname to the correct site, including www if you use it. DNS points to the server; the web server still needs to know which site to return for that name. A new IP by itself will not create a domain mapping.

## Related guides

- [DNS Records Explained for Website Owners](https://ferkesh.net/knowledgebase/article/dns-records-explained)
- [DNS TTL and Propagation: How to Check a Change](https://ferkesh.net/knowledgebase/article/dns-ttl-and-cache)
- [How to Diagnose an HTTPS Certificate Warning](https://ferkesh.net/knowledgebase/article/https-certificate-warning)
- [Domains and DNS category](https://ferkesh.net/knowledgebase/category/domains-and-dns)

## Official references

- [Cloudflare DNS record types](https://developers.cloudflare.com/dns/manage-dns-records/reference/dns-record-types/)
- [RFC 1035 on DNS records](https://www.rfc-editor.org/rfc/rfc1035)

Ferkesh Hosting. Last reviewed November 26, 2026.
