Adding a domain you own to your DigitalOcean account lets you manage the domain’s DNS records with the control panel and API. Domains you manage on DigitalOcean integrate with DigitalOcean Load Balancers and Spaces to streamline automatic SSL certificate management.
To manage your domain’s DNS records using DigitalOcean’s DNS service, you must delegate the domain to use DigitalOcean’s name servers. You can do this by updating your domain’s delegation at its registrar (the website you purchased the domain from). DigitalOcean is not a domain registrar and doesn’t currently provide domain registration.
Services that allow you to purchase domains, such as Namecheap, are called domain registrars and they offer the ability to manage your domain’s DNS records on their website or allow you manage your records other services, such as DigitalOcean. DNS records manage various functions of your domain but are most commonly used to map domains to servers that host websites. If you purchase a domain from a registrar and then set up a Droplet on DigitalOcean, you have two options on how to map the domain to the Droplet:
We recommend recommend using DigitalOcean to manage your DNS records as this can make record management easier by consolidating your resources on a single platform where you can take advantage of DigitalOcean’s DNS configuration interface.
If you decide to use DigitalOcean’s DNS service, you need to update which name servers your domain is using at your registrar. Name servers are the authoritative source of your domain’s records. This means that when someone types your domain into their web browser, the Domain Name System (DNS) queries your domain’s name servers for the latest DNS records. In this case, DigitalOcean’s name server’s become the authoritative source for your domain’s DNS records.
To update your domain’s delegation, you usually need to paste the following DigitalOcean name server addresses into a name server at the registrar:
ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com
While we cannot directly document this process at each registrar, we have collected a list of links to several popular registrar’s documentation on how to change your domain’s name servers. The process is similar across most registrars and is often called “using custom name servers”.
Once you have updated the domain’s name server’s at your registrar, it may take between 30 minutes to several hours for the change to propagate across the internet. You can check to see if the changes have started taking effect by using our DNS Lookup tool. If your DNS has propagated correctly, the tool displays DigitalOcean’s name servers under the NS Records section like this:
Once your changes have propagated, you can begin managing your domain’s records using DigitalOcean’s interface.