Opens in a new tab

How to add DNS records at DigitalOcean

DigitalOcean’s DNS lives under Networking → Domains in the control panel. You type the part of the name before your domain, @ for the domain itself — and if you want to type a full name, it must end with a dot.

Name fieldWithout the domain; @ for the root; a full name ends with a dot
Minimum TTL30 seconds
Alias at the rootNot offered
DNSSECNot supported
Nameserversns1–ns3.digitalocean.com

Where the DNS records are

In the DigitalOcean control panel, open Networking → Domains, choose the domain, and add a record with Create a record. The domain must use DigitalOcean’s nameservers (ns1, ns2 and ns3.digitalocean.com) for these records to be the ones the world sees.

What to type in the name field

DigitalOcean adds your domain to what you type: enter www to create www.example.com, and @ for example.com itself. To type a whole name instead, end it with a dot, which tells DigitalOcean it is complete.

You were given a record forType in the name field
The domain itself — SPF, verification codes, MX@
DMARC_dmarc
A DKIM key (selector s1, for example)s1._domainkey
A subdomain such as www or mailwww

Adding a record

  1. Open Networking → Domains and choose the domain.
  2. Pick the record type tab (TXT, CNAME, MX …).
  3. Enter the hostname as in the table above, and paste the value.
  4. Choose a TTL — 3600 is a sensible default; use a short one if you expect to change it soon.
  5. Select Create Record.

Check the record you just added

Enter the full name — _dmarc.yourdomain.com, s1._domainkey.yourdomain.com — and the type. If it answers, it is published; if it is not there yet, try again after a few minutes.

TXT records and long DKIM keys

DigitalOcean’s documentation does not say how it handles TXT values longer than 255 characters, such as a 2048-bit DKIM key. Paste the key as one value, then check the published record with the lookup above.

Pointing the root domain at a service

There is no ALIAS or flattening record. To point the root domain at a service that gives you a host name, use the A (and AAAA) addresses the service publishes.

DNSSEC

DigitalOcean DNS does not support DNSSEC: it cannot sign zones, and its documentation says its nameservers do not support domains with DNSSEC enabled. If your registrar has a DS record for the domain, remove it before moving DNS to DigitalOcean, or the domain stops resolving for validating resolvers.

Common mistakes

  • Typing the full name without a trailing dot, so it becomes www.example.com.example.com.
  • Leaving DNSSEC enabled at the registrar after moving to DigitalOcean.
  • CAA records cannot carry the “;” value that forbids all certificate issuance.
  • Names with non-ASCII characters must be entered in their punycode form.

Setting up email? The exact records for each service are in our email setup guides; to watch a change reach resolvers worldwide, use the propagation checker.

Questions

How long do DigitalOcean DNS changes take?

DigitalOcean’s own servers answer with the new record quickly; resolvers that cached the old one keep it until its TTL expires. After a nameserver change, DigitalOcean says allow from 30 minutes to several hours.

Sources

Checked against DigitalOcean’s own documentation on 25 September 2026:

Know the record is right, and stays right

Add your domain and we check its DNS on a schedule, tell you when a record changes, and watch a new record reach resolvers worldwide. Free for your first domain.

Create a free account