DNS records (A, AAAA, CNAME)

The rows in your domain's settings that say where the name points: A and AAAA to an IP address, CNAME to another hostname.

connect my domain to the hostpoint the name somewherewhere do I put the IP address for my domaindomain settings my host asked me to changeA record vs CNAMEdns reccordsdomain name mappingthe stuff you paste into GoDaddy or Cloudflare

See it

Live demo coming soon

What it is

DNS is the phone book that turns 'yoursite.com' into an address a browser can actually connect to. Records are the individual rows in that book. An A record points a name at an IPv4 address (76.76.21.21). An AAAA record does the same for IPv6. A CNAME points a name at another name ('www.yoursite.com is really cname.vercel-dns.com'), so the target can change its IP without you touching anything.

Reach for A/AAAA when your host hands you a fixed IP, and CNAME when they hand you a hostname, which is what most modern platforms do because their edge IPs move. Netlify, Vercel, Cloudflare Pages and Fly all give you a CNAME target for 'www' plus something for the bare domain.

The classic trap: you cannot put a plain CNAME on the root/apex domain ('yoursite.com' with no www), because the apex also has to carry NS and other records. Providers work around it with ALIAS, ANAME, or 'CNAME flattening'. Second trap: the '@' in the host field means the root, and a trailing dot on the target means 'this is the full name, stop appending my domain to it'.

Ask AI for it

For '<DOMAIN>' hosted on '<DNS_PROVIDER>' and deployed to '<HOST>', give me the exact DNS records to add, built from the verification and target values the host actually issues me. Ask for those values if they are not in this repo instead of inventing them. Output a table with type, host/name, value, and TTL for both the apex and the www subdomain. Do not assume A or AAAA: choose between A, AAAA, CNAME, ALIAS/ANAME, and CNAME flattening based on what the host hands over and what the DNS provider supports at the apex. Then list every existing record that would conflict and has to be deleted or edited first, and the order to make the changes in.

You might have meant

dns propagationdns ttlnameservertls certificate tls terminationorigin server

Go deeper