Point your domain or a subdomain with A and CNAME records
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
- No CNAME at the root. The root holds NS, SOA, and MX records. A CNAME there breaks email.
- No CNAME beside other records. A name with a CNAME cannot also have an A, MX, or TXT.
- CNAME targets are names. Do not enter an IP address.
- Cloudflare offers CNAME flattening at the root. See Use Cloudflare with Barbrick.
- IPv6. If a service gives you an IPv6 address, add an AAAA record the same way.
Add them in your Barbrick account
- Open Account → Hosting → your site → DNS.
- In Add a record, below the table, choose A or CNAME as the Type.
- Enter the name and value, and click Add record.
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
- Site shows a "default" page. The domain reaches the server, but is not added to your account. See Point your domain to Barbrick.
- www works but root does not, or the reverse. Add the missing record. See www or no www.
- Certificate warning. The name has not got an SSL yet. See Why your free SSL hasn't been issued.
Still stuck? Ask us and we'll walk you through it.
