DNS zones and records explained
Last updated
DNS is the internet’s address book. When someone types your domain, DNS tells their device which server holds the website, where to deliver email, and much more. Each answer is a DNS record, and all the records for one domain together are called a zone.
MaintainHQ can host the DNS for any domain you own, for free, on our own name servers, wherever you bought the domain. This guide explains how, and what every record type in the editor is for.
How DNS works, in plain words
Every domain has name servers: the DNS servers that hold its records. You choose them at your registrar (the company you bought the domain from). Whoever runs the name servers is your DNS host.
When you host DNS on MaintainHQ, our name servers answer for your domain. They are currently ns1.maintainhq.space, ns2.maintainhq.space and ns3.maintainhq.space; always copy the ones shown on screen.
Records are cached by the devices and services that look them up, for as long as the record’s TTL (time to live) says. A short TTL means changes are seen quickly; a long one means they take longer to spread.
Host a domain’s DNS on MaintainHQ
- Open DNS in the left-hand menu, under Hosting & domains.
- In Add a domain, type the domain, for example example.com, and click Host DNS here.
- MaintainHQ copies the domain’s current records across, so your website and email keep working. Check them on the next page.
- At your registrar, replace the domain’s name servers with the ones shown. The Copy all button copies them in one go.
- Wait for the switch. It usually happens within a few hours, sometimes up to two days. MaintainHQ checks on its own; click Check now to check straight away.
Until the switch, the zone shows "Waiting for your registrar" and your records are saved but not yet answered. Once the registry reports our name servers, it shows "In use".
You can also start from a hosted site: its DNS tab has a Host DNS here button and suggests the site’s domains. Domains you register with MaintainHQ are set up on MaintainHQ DNS automatically if you choose it at checkout.
Record types
The editor supports these record types. You will only ever need a few of them; the rest are for specialist services that will tell you exactly what to enter.
| Type | What it does | Example value |
|---|---|---|
| A | Points a name at an IPv4 address (a server’s numeric address). | 203.0.113.10 |
| AAAA | Points a name at an IPv6 address (the newer, longer kind). | 2001:db8::1 |
| CNAME | Makes a name follow another hostname. Not allowed on the bare domain. | shops.example.net |
| ALIAS | Like a CNAME, but allowed on the domain itself. | sites.example.net |
| MX | Says which servers take the domain’s email, with a priority. | 10 mail.example.com |
| TXT | Text for verification and email rules (SPF, DKIM, DMARC). | v=spf1 include:spf.example.net ~all |
| SRV | Where a service lives: priority, weight, port and target. | 10 5 5060 sip.example.com |
| CAA | Which certificate authorities may issue SSL for the domain. | 0 issue "letsencrypt.org" |
| NS | Hands a subdomain to other name servers. | ns1.example.net |
| TLSA | Pins a TLS certificate: usage, selector, matching type, hash. | 3 1 1 0d6fce3a… |
| SSHFP | An SSH host key fingerprint: algorithm, type, fingerprint. | 4 2 9f8c… |
| HTTPS | Tells browsers how to reach the site: priority, target, parameters. | 1 . alpn=h2,h3 |
| SVCB | Service details: priority, target, parameters. | 1 svc.example.net alpn=h2 |
The domain’s own NS and SOA records (SOA is the zone’s housekeeping record) are set by MaintainHQ and cannot be edited.
Add and edit records
- Open the domain from DNS and click Add record.
- Choose the Type.
- Type the Name: @ for the domain itself, or a word such as www or shop for a subdomain. The form shows the full name the record answers for.
- Choose a TTL. Auto (1 minute) is the default and means changes are seen almost at once.
- Enter the value. MX records have a Priority and Mail server for each server (click Another mail server to add more; the lowest number is tried first). CNAME and ALIAS have a single Points at box. Other types take one value per line.
- Optionally add a Note that only you see, such as what the record is for.
- Click Save record.
To change a record, click the pencil icon. To remove one, click the bin icon. The delete confirmation warns you if the record looks important, for example the domain’s only mail server or the record that points it at a website.
Changes reach every name server within seconds. The header shows "Publishing…" and then "Live on 3 of 3 name servers" (or similar) when they are out.
Records that a hosted site needs carry a note starting "Set by MaintainHQ". MaintainHQ keeps them right, including if the site ever moves server.
Templates, search and export
- Templates: add the records for a common email service in one go. Google Workspace email and Microsoft 365 email are available. The dialog shows each record as New or Replaces existing before you click Apply template. Existing TXT values are kept, apart from an older SPF rule.
- Search and filter: once a zone has records, search names, values and notes, or filter by type.
- Export: downloads the zone’s records as a file, so you have a copy.
History and undo
The History tab lists every change to the zone, newest first: what was added, changed, deleted, imported or added from a template, with the old value crossed out and the new one below. Click Undo on any change to put that record back as it was before.
DNSSEC
DNSSEC signs the zone so nobody can forge answers for your domain. It needs one extra record, a DS record, added at your registrar.
- Open the domain in DNS, then the DNSSEC tab.
- Click Switch DNSSEC on. The zone is signed and the status becomes "Signed, waiting for your registrar".
- Copy the DS record shown (it is also broken down into key tag, algorithm, digest type and digest) and add it at your registrar.
- Click Check the registry. When the registry publishes it, the status becomes Protected.
Stop hosting DNS
On the domain’s Settings tab, Stop hosting DNS for (domain) deletes the zone and every record in it. Export the records first if you want a copy.