Automatic DNS
On this page
- What it changes, and what it leaves
- Your own addresses and the mail-app names
- Setting it up
- Managing the records yourself
- On dnso.city
- At Cloudflare, Namecheap and other providers
- Domains set up before: moving onto dnso.city
- Several domains with one key (Route53 connections)
- Shared domains and the platform's own zones
- Published, but the check still fails
- Not yet
A team's domain gets its DNS records one of two ways, chosen under DNS management on the domain's page:
- dnso.city manages them (recommended). dnso.city is Zappocity's own DNS hosting, free for a team's domains. The domain's zone there gets the MX, SPF, DKIM, DMARC, MTA-STS, ownership and app-discovery records from the domain's DNS list, and they are checked every hour, so a new DKIM key or an MTA-STS change goes out by itself and a record changed by hand is put back. If the domain's name servers stay at another provider (AWS Route53, Cloudflare, DigitalOcean, Gandi, GoDaddy, Hetzner, Linode, Namecheap, OVHcloud, Porkbun, Spaceship or Vultr), link the zone to that provider on its page on dnso.city: dnso.city keeps the provider's copy the same as its own. That provider's keys are given there, and only there.
- You manage them yourself: publish the records from the domain's DNS list wherever its DNS is, and keep them up to date (a new DKIM key, for one). Check DNS says what is missing.
There is one place to manage a team's zone: its page on dnso.city.
What it changes, and what it leaves
Records are published as whole record sets (a name and a type), as Route53 keeps them.
- MX at the domain, and the CNAME and SRV records it lists, become Zappocity's alone. Mail for the domain then comes here.
- TXT values are merged: Zappocity's SPF record replaces any other SPF record (a domain may have only one), its DMARC record the one at
_dmarc, its DKIM keys the values at their selectors, and its ownership record the old one. Other TXT values at the same names, such as another service's verification, stay. - Every other record in the zone (your website, other services) is left alone.
- A CNAME in the way. DNS allows no other record at a name that has a CNAME. If your zone has one where Zappocity publishes a record (most often a wildcard
*.example.comCNAME for a website, beside the wildcard MX that turning on subdomain addressing adds):- By default it is flattened (in a team's zone on dnso.city, and a shared domain's in Route53): the CNAME is replaced by the A and AAAA addresses its target has, with Zappocity's record beside them, so the website keeps working. The addresses are looked up again at every publish (hourly), so they follow the target. When Zappocity no longer needs the name (subdomain addressing turned off), the CNAME is put back as it was.
- Replace it for good: tick Always replace records in the way with ours to keep the zone the way Zappocity wants it, or choose Publish and replace records in the way once. What the CNAME served stops working at that name.
- In a shared domain's zone on dnso.city neither is possible: the record is skipped, everything else is published, and the page says what was skipped.
- Other records where a CNAME of Zappocity's goes. The reverse also happens: your zone has, say, an A record at
imaporsmtpleft from a previous mail host, where Zappocity publishes a CNAME. That CNAME is skipped and named, with what is in the way ("the zone has A records there"), and everything else is still published. Remove those records, or choose Publish and replace records in the way (or tick Always replace records in the way with ours), which removes them and publishes the CNAME, on Route53 and on dnso.city alike.
Stopping it leaves the records as they are.
Your own addresses and the mail-app names
Automatic DNS also publishes the names people type into a browser or a mail app:
- Your own addresses (see Your own addresses): webmail, the tenant manager, and the forums and wiki while the tenant has them. Each gets a CNAME to the target the team manager shows, and an old A or AAAA record at that name is replaced. A name that cannot have a CNAME (the domain itself, or a name that also has other records, such as MX or TXT) gets the target's A and AAAA addresses instead, looked up again at every publish so they follow the target.
- imap., smtp. and jmap. under the domain get a CNAME to the server's host name, so mail apps can use
imap.example.comand the like (each gets its certificate at the first connection). mail. is added too when Also publish the optional records is on (the default). A name already used as one of your own addresses is left to that.
When a name stops being yours (you remove it, or the tenant's forums or wiki are turned off), its record is taken out at the next publish, but only while it still points here: a CNAME to the target, or addresses that are all the target's. A record someone has changed since is left alone. Saving the team's or a domain's own addresses, or turning forums or wiki on or off, publishes at once.
Setting it up
- On the domain's page in the team manager, under DNS management, choose Manage on dnso.city. (When you add a domain, Manage its DNS on dnso.city does the same, and is on by default.) The first time, the domain's zone is made on dnso.city, in a DNS account of the team's organization ("Acme (Mailocity domains)", on the free Mailocity domains plan; a zone the organization already has there is used instead), and the mail records are published in it.
- Then either:
- set the domain's name servers to dnso.city's at its registrar (copy any records it has elsewhere, a website's, into the zone first); the zone's page says when the registry has them, and shows the DS record that turns DNSSEC on; or
- keep the name servers where they are and link the zone to that provider: Open the zone on dnso.city, then under Linked provider choose the provider and give its keys (see below). The provider's records are copied into the zone first, so linking takes nothing away.
- Publish now on the card lists what changed, then runs the same check as Check DNS and names any required record DNS doesn't answer with yet (see below).
The card shows the zone, whether it is linked and to which provider, and whether the provider has the zone's latest records. Your organization's owners change the zone and its link on the Zappocity account page, under DNS hosting; their own records there stay.
The team must belong to an organization (its Mailocity subscription's), and the domain must not be served for another organization on dnso.city; otherwise publishing fails and the card says why.
From the command line: corpsuite domain dns-automation set TEAM DOMAIN, then corpsuite domain dns-automation sync TEAM DOMAIN.
Managing the records yourself
Manage records myself on the card stops Zappocity keeping the records up to date; records already published stay. Publish the records from the domain's DNS list (Download zone file gives them all) at your DNS provider: the provider guides say how at the common ones. Remember to publish again when the list changes (a new DKIM key, an MTA-STS change). You can switch back to dnso.city at any time.
From the command line: corpsuite domain dns-automation remove TEAM DOMAIN.
On dnso.city
dnso.city keeps the zone, answers for it when the domain's name servers are its own, and pushes it to a linked provider when they are not. The mail records are written into the zone by automatic DNS; every other record there is yours to change. See DNS hosting for the zone's page, DNSSEC and secondaries.
At Cloudflare, Namecheap and other providers
When the domain's name servers are at one of these, link its zone on dnso.city to the provider (the zone's page, Linked provider) with:
| Provider | What to give | Where to get it |
|---|---|---|
| Amazon Route53 | Access key ID and secret, optionally the region and hosted zone ID | IAM → Users → an access key with the policy below |
| Cloudflare | API token | My Profile → API Tokens → Create Token, with Zone → DNS → Edit for the zone |
| DigitalOcean | Personal access token | API → Tokens, with the domain scopes |
| Gandi | Personal access token | Organizations → Personal Access Tokens, with technical configuration of domains |
| GoDaddy | API key and secret | developer.godaddy.com → API Keys (Production); GoDaddy limits API access to some accounts |
| Hetzner DNS | API token | dns.hetzner.com → API Tokens |
| Linode (Akamai) | Personal access token | Profile → API Tokens, with Domains: Read/Write |
| Namecheap | API user, API key, and optionally the platform's IPv4 address | Profile → Tools → Namecheap API Access; the domain must use BasicDNS |
| OVHcloud | Endpoint (ovh-eu, ovh-ca, ovh-us), application key and secret, consumer key | api.ovh.com/createToken, with GET, POST, PUT and DELETE on /domain/zone/* |
| Porkbun | API key and secret API key | Account → API Access; turn on API access for the domain too |
| Spaceship | API key and secret | API Manager, with dnsrecords:read and dnsrecords:write |
| Vultr | API key | Account → API |
For Route53, give the key this policy, with your hosted zone's ID, so it can change only that zone (leave out ListHostedZonesByName if you give the hosted zone ID):
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["route53:ChangeResourceRecordSets", "route53:ListResourceRecordSets", "route53:GetChange"],
"Resource": ["arn:aws:route53:::hostedzone/Z0123456789ABC", "arn:aws:route53:::change/*"]
},
{
"Effect": "Allow",
"Action": ["route53:ListHostedZonesByName"],
"Resource": "*"
}
]
}
- Give a token limited to DNS, and to this zone where the provider allows it.
- The keys are tried by reading the zone before they are kept. Their secret parts are sealed and never shown again.
- How the link works (authoritative or managed, records another app keeps at the provider) is in DNS hosting.
Domains set up before: moving onto dnso.city
Domains whose automatic DNS published straight to Route53 (with a key of their own or a Route53 connection) or to another provider move onto dnso.city by themselves, with the same keys: the domain's zone on dnso.city is made (or the organization's existing one used), linked to that provider with those keys as Authoritative, the provider's records copied in first so nothing is lost, and the domain then publishes into the zone. The keys are then kept only on the zone's link; the mail side forgets them. A zone your owners had already linked keeps its link.
Until a domain has moved, it keeps publishing as before, and its card says Moving to dnso.city. If a move fails (the team has no organization yet, the provider doesn't answer, the zone would pass the plan's 200 records), the card says why, and it is tried again every hour.
Several domains with one key (Route53 connections)
Teams no longer keep provider keys in the team manager: each domain's zone on dnso.city has its own link. Domains that published with a team's Route53 connection moved onto dnso.city with the connection's key (see above). Route53 connections remain for the operator's shared domains only.
Shared domains and the platform's own zones
The operator sets up shared domains (mailo.city and the like) under Shared domains: published in their zone on dnso.city (one staff list among the shared domains' zones), in Route53 with a key, a Route53 connection or the server's own AWS credentials (its environment, or the instance role of a server running in AWS), or at one of the providers above with its credentials. A team's domain can never use the server's credentials.
Published, but the check still fails
Publishing changes the zone on dnso.city; the check reads what DNS answers, which is what mail sees. When Publish now says every record is right there but lists records DNS doesn't answer with:
- The domain's name servers are elsewhere, and the zone isn't linked. Set them to dnso.city's, or link the zone to the provider they belong to.
- The link's push failed (wrong or expired keys, say): the card and the zone's page show the last error under Linked provider; fix the keys there, and Push now tries again.
- Caches. A record just changed can take up to its old TTL to show.
Not yet
- Providers other than those above: manage the records yourself, with the zone file or the provider guides.
- One set of provider keys for several of a team's zones on dnso.city.
- The platform's own host names (the mail host's address records) published this way.