Point your domain or a subdomain with A and CNAME records

a record, cname, www, subdomain, dns · 0 found this helpful

An A record points a name to an IP address. A CNAME record points a name to another name. Together they route your website traffic.

Pick the right one

You have Use
An IP address A record
A hostname given by a service (for example shops.example-store.com) CNAME on a subdomain
The bare domain (example.ca) and a hostname An A record, an ALIAS/ANAME if offered, or CNAME flattening. A plain CNAME is not allowed at the root.

Point your root domain and www to Barbrick

For example.ca, with the server at 203.0.113.25:

Type Name Value TTL
A example.ca. 203.0.113.25 3600
CNAME www.example.ca. example.ca. 3600

Barbrick's nameservers create these for you. You only edit them when DNS is elsewhere, or when you change servers.

Point a subdomain to a service

North Shore Bakery uses an online ordering tool at orders.example-store.com. Create order.example.ca as an alias.

Type Name Value TTL
CNAME order.example.ca. orders.example-store.com. 3600

Point a subdomain to an IP

Type Name Value TTL
A portal.example.ca. 198.51.100.40 3600

Rules

  1. No CNAME at the root. The root holds NS, SOA, and MX records. A CNAME there breaks email.
  2. No CNAME beside other records. A name with a CNAME cannot also have an A, MX, or TXT.
  3. CNAME targets are names. Do not enter an IP address.
  4. Cloudflare offers CNAME flattening at the root. See Use Cloudflare with Barbrick.
  5. IPv6. If a service gives you an IPv6 address, add an AAAA record the same way.

Add them in your Barbrick account

  1. Open Account → Hosting → your site → DNS.
  2. In Add a record, below the table, choose A or CNAME as the Type.
  3. Enter the name and value, and click Add record.
Add a record, below the records table on the DNS page

See Add, edit, and delete DNS records.

Check it

dig +short www.example.ca
example.ca.
203.0.113.25

The first line is the CNAME target. The second is the address it leads to.

If something goes wrong

Was this helpful?

Still stuck? Ask us and we'll walk you through it.