A records: what they are and how to add one

What an A record does, when to use one instead of a CNAME, and how to add or edit an A record in DirectAdmin.

Guide2 min readLast updated
On this page
  1. When you need one
  2. Adding an A record in DirectAdmin
  3. Editing or replacing one
  4. Checking it
  5. If it doesn’t work
  6. Common questions

An A record maps a name to an IPv4 address. It’s the record that tells browsers which server your website is on.

yourdomain.co.uk. 3600 IN A 203.0.113.10

That reads: the name yourdomain.co.uk, cached for 3600 seconds, has the IPv4 address 203.0.113.10.

When you need one

With Traxio nameservers, the A records for your website are created for you.

Adding an A record in DirectAdmin

  1. Open Account Manager › DNS Management and choose your domain.
  2. Select Add Record and choose type A.
  3. Name: the subdomain, such as app. For the bare domain, use the domain itself.
  4. Value: the IPv4 address, such as 198.51.100.25.
  5. TTL: leave the default unless you’re planning a change.
  6. Save.

Editing or replacing one

Edit the existing record rather than adding a second one with the same name. Two A records for one name make DNS return both addresses in turn, so visitors randomly reach either server.

Checking it

dig app.yourdomain.co.uk A +short

The address you entered should come back. How to check DNS records (dig, nslookup and online tools)

Prefer to follow along?

If it doesn’t work

These guides cover the most common problems, starting with what you can see. Or browse every fix for a common problem.

Common questions

What is an A record?

An A record points a domain name at an IPv4 address — the numeric address of the server holding your site. It is the record that decides which server a browser connects to when someone visits your domain.

This is a general web-hosting explanation, not specific to Traxio.

A typical A record reads: @ A 203.0.113.10, where @ means the domain itself.

The AAAA record does exactly the same job for IPv6 addresses. If both exist, modern devices generally prefer the IPv6 one, which is why a stale AAAA record can make a site unreachable for some visitors and fine for others.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going