A and AAAA records
This guide explains how to add or change an A record and an AAAA record, so that a domain points to the correct server address.
Before you begin
- Confirm which DNS case applies to your domain. Read Find your DNS provider.
- The IP address for your service, copied from your hosting account or VPS details. The examples below use reserved documentation addresses, not real ones.
- Note the current records for the same host, so you can restore them.
Steps
Open the DNS editor at the provider you identified.
Add an A record for the domain itself. Example, using a documentation address:
Type Host Value TTL A @ 192.0.2.10 3600 Add an A record for
www, if you wantwww.yourdomain.comto work. Use the same value, or create a CNAME record instead. See CNAME records.Add an AAAA record only if your server has an IPv6 address. Example, using the documentation prefix:
Type Host Value TTL AAAA @ 2001:db8::10 3600 Save the changes and wait for them to spread.
Check the result with
dig A yourdomain.com +shortanddig AAAA yourdomain.com +short.
Expected result
The lookup returns the address you entered, and the website opens.
If something goes wrong
- The lookup shows an old address. The change may still be spreading. Check the TTL and wait.
- The website shows the wrong site. Check whether there is a second A record with a different value. Remove duplicates that you do not need.
- An AAAA record breaks the site for some visitors. Remove the AAAA record unless the IPv6 address is working and reachable.
Related articles
Last reviewed
2026-10-27
