warren
By:
warren

How can I split DNS between DO and my registrar?

January 26, 2016 1.1k views
DNS

How can I use Digital Ocean's DNS for cloud services, even though not all of the services I want associated with my domain are hosted on DO?

(ref :: http://superuser.com/q/1031738/978)

2 Answers

You are not required to use DigitalOcean DNS for services hosted on DigitalOcean. We provide our DNS management tools simply as a convenience. Many of our users prefer being able to manage their DNS settings in the same place as their servers. We also provide an API for working with DNS that can be very useful if you've automated other tasks with our API. Though you are not required to use them nor are you locked-in in any way. If you're happy using your domain registrar's DNS panel, there's not need to change.

  • I realize I'm not required to use DO's DNS - I want to for cloud services because manually managing that with my registrar's control panel is unwieldy.

    I would like, therefore, to use both my registrar's DNS and Digital Ocean's.

When you register a domain, you provide the registrar with a list of DNS servers that know how to handle requests for that domain. When an end user wants to connect to one of your services, retrieves the list of these servers from the central registry, selects one of them, and executes the specific query on that server. If you had your DNS split between two different DNS services, you'd have spotty accuracy because you'd have a 50% chance that the server the client queried actually knew about the service you wanted.

There is a workaround, however: you can delegate a subdomain to another set of DNS servers by adding NS records for the subdomain on the parent domain. This would only work if you had, for example, www.yourdomain.com with your registrar and www.do.yourdomain.com with DigitalOcean. If you wanted to have www.yourdomain.com with your registrar and mail.yourdomain.com and intranet.yourdomain.com with DO, this would get very messy as you'd be creating new DNS zones for single hostnames, which is not how the DNS system was designed to work.

All of this said, however, I don't think DO has a problem with you listing non-DO entries in their DNS zones, as long as you aren't abusing it (I don't know this for sure, as I run my own DNS servers). The opposite is also likely true--you could list your DO hosts in your registrar's DNS.

Have another answer? Share your knowledge.