Choose an A, AAAA or CNAME record for a website hostname Print

  • dns, a record, aaaa, cname, www
  • 0

Quick answer

Use the record type and destination supplied by the website host. An A record points to an IPv4 address, AAAA to an IPv6 address, and CNAME to another hostname. These records control a hostname, while nameservers control which provider answers the zone.

Before you start

Confirm the authoritative DNS provider and the host's exact instructions for the root domain and www or other subdomain. Preserve the old values and inspect existing records for conflicts.

What to do

  1. Identify the hostname being changed and whether the host supplied an IP address or a target hostname.
  2. Use the required record type and value at the authoritative DNS provider. Follow that provider's rules for root-domain aliasing rather than inventing an unsupported CNAME.
  3. Check for conflicting or stale A, AAAA, and CNAME records for the same name. Keep unrelated MX, TXT, and service records unchanged.
  4. Verify public DNS and then test the website over HTTPS, including both root and www when they are intended to work.

Check the result

Confirm that all published addresses lead to the intended service. A stale AAAA record can send IPv6 visitors somewhere different even when the A record is correct.

If something does not work

If the website still shows the old host, check caching, proxy status, redirects, and the host's domain mapping. Do not change nameservers unnecessarily for a simple website record update.

Related help

Official references

Reviewed October 31, 2026. Interfaces, vendor availability, and account features can change. Check your current account before making changes.


Was this answer helpful?

« Back