All help articles

Automatic DNS

On this page

A team's domain gets its DNS records one of two ways, chosen under DNS management on the domain's page:

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.

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:

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

  1. 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.
  2. 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.
  3. 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:

ProviderWhat to giveWhere to get it
Amazon Route53Access key ID and secret, optionally the region and hosted zone IDIAM → Users → an access key with the policy below
CloudflareAPI tokenMy Profile → API Tokens → Create Token, with Zone → DNS → Edit for the zone
DigitalOceanPersonal access tokenAPI → Tokens, with the domain scopes
GandiPersonal access tokenOrganizations → Personal Access Tokens, with technical configuration of domains
GoDaddyAPI key and secretdeveloper.godaddy.com → API Keys (Production); GoDaddy limits API access to some accounts
Hetzner DNSAPI tokendns.hetzner.com → API Tokens
Linode (Akamai)Personal access tokenProfile → API Tokens, with Domains: Read/Write
NamecheapAPI user, API key, and optionally the platform's IPv4 addressProfile → Tools → Namecheap API Access; the domain must use BasicDNS
OVHcloudEndpoint (ovh-eu, ovh-ca, ovh-us), application key and secret, consumer keyapi.ovh.com/createToken, with GET, POST, PUT and DELETE on /domain/zone/*
PorkbunAPI key and secret API keyAccount → API Access; turn on API access for the domain too
SpaceshipAPI key and secretAPI Manager, with dnsrecords:read and dnsrecords:write
VultrAPI keyAccount → 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": "*"
    }
  ]
}

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:

Not yet

Back to top