Glossary / DNS records

A record

An A record is a DNS record that points a hostname at an IPv4 address, such as example.com to 192.0.2.10. It is the record browsers rely on to find a website's server. A name can have several A records for load sharing, and AAAA records do the same job for IPv6.

Copy the syntax

A record in a zone file

example.com. 3600 IN A 192.0.2.10

Use your host's IPv4 address in place of the example.

Check it

dig example.com A +short

On Windows: nslookup example.com

Have a name in mind?

.com $24.99 first year, renews at $24.99/yr. Other endings: not on sale yet.

In plain English

An A record points your domain at the numeric address of the server that hosts your site.

What to do

  • Copy the IP address from your host.
  • Add or edit the A record for @ and www.
  • Lower the TTL a day before you move servers.
What an A record doesA record mapping: example.com resolves to 192.0.2.10, the web server the browser connects to.1 · Nameexample.comwhat people type2 · A record192.0.2.10stored in DNS3 · Serverweb hostbrowser connects
The A record turns the name into the IPv4 address the browser connects to.
Defined in
RFC 1035, section 3.4.1Source: RFC 1035
Type code
1Source: IANA
Address size
32 bits, written as four numbersSource: RFC 791
Documentation ranges
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24Source: RFC 5737
How do I edit an A record?

Open the DNS editor for your domain, find the A record for the name you want, such as @ for the bare domain or www, and replace the IP with the new one. Save and wait out the old TTL.

Lower the TTL to 300 seconds a day before a planned move. Changes then spread in minutes instead of hours.

Should I use an A record or a CNAME?

Use an A record when your host gives you an IP address, and always for the bare domain. Use a CNAME on subdomains when a provider gives you a hostname, so their IP changes never break your site.

A record examples

Documentation-only addresses (RFC 5737).
NameTypeValueUsed for
@A192.0.2.10Bare domain
wwwA192.0.2.10www host on the same server
@A198.51.100.10Second server, load sharing
mailA203.0.113.25Mail server host

How do I add an A record?

  1. Copy the IPv4 address from your hosting dashboard. It looks like 192.0.2.10.

  2. In your DNS editor, add a record of type A. Enter @ for the bare domain or a label like www.

  3. Paste the address, keep the TTL at 3600 or lower, and save.

  4. Run dig example.com A +short. The new address comes back once caches refresh.

Questions about A record

What does the @ mean in an A record?

The @ stands for the zone’s own name, the bare domain. An A record at @ for example.com points example.com itself, not a subdomain.

Can I have two A records for one name?

Yes. Resolvers return both addresses, and clients pick one, which spreads load roughly between servers. Both servers must serve the same site.

How long does an A record change take?

As long as the old record’s TTL, often an hour. Lowering the TTL ahead of a move makes the switch faster.

Can an A record point to a website URL?

No. An A record holds only an IPv4 address. To send a name to another URL, use a redirect on a web server; to alias another hostname, use a CNAME.

Put it to work on your own domain

See the first-year and renewal price before you pay.

.com first year$24.99, renews $24.99Check a domain
↑