How to change DNS records at DigitalOcean
Free DNS hosting for domains you point at DigitalOcean. Not a registrar.
Where the DNS settings live
- Sign in and go to Networking → Domains.
- Click the domain to open its records.
Adding a record
- Choose the record type tab (A, CNAME, MX, TXT...).
- Enter the Hostname —
@for the root — and the value. - Click Create Record.
Editing or deleting a record
- Click More on the record row → Edit, change it, and save.
- The same menu has Delete.
Changing the nameservers
- Set the three DigitalOcean nameservers at your registrar, then add the domain under Networking → Domains.
DigitalOcean nameservers
These are the values you would set at your registrar to let DigitalOcean run your DNS. Always confirm them in your own account — several providers assign per-account values.
ns1.digitalocean.comns2.digitalocean.comns3.digitalocean.com
Gotchas at DigitalOcean
- DigitalOcean will not serve a zone you have not explicitly added, even if the nameservers point at them.
- Records must be added after the domain is created in the panel, not before.
After you save
DNS changes are not instant. Resolvers keep the old answer until the previous record's TTL expires, so a record with a 4-hour TTL can take 4 hours to change everywhere — occasionally longer if an ISP ignores TTLs. Check what the world currently sees before assuming something is broken, and see the troubleshooting page if it still looks wrong after the TTL has passed.
Other cloud / dns platform guides
Akamai / Linode
Free DNS Manager included with a Linode account.
Amazon Route 53
AWS DNS service. Also a registrar. Charged per hosted zone and per query.
Azure DNS
Microsoft's managed DNS, configured through the Azure portal.
Cloudflare
Free, fast DNS with an optional proxy/CDN layer. Very common as a DNS host even when the domain is registered elsewhere.
Google Cloud DNS
Google Cloud's authoritative DNS. Note: consumer Google Domains was sold to Squarespace.
Netlify
Static hosting platform with optional Netlify DNS.