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.
DNS (Domain Name System) is a naming system that maps a server’s domain name, like example.com
, to an IP address, like 203.0.113.1
. This is what allows you to direct a domain name to the web server hosting that domain’s content, for example.
To set up a domain name, you need to purchase a domain name from a domain name registrar and then set up DNS records for it. Registrars are organizations that have completed an accreditation process that allows them to sell domain names. Registrars typically offer services to manage DNS records as well, but once you have purchases a domain, most registrars will allow you to manage your DNS records with other providers.
DigitalOcean is not a domain name registrar, but you can manage your DNS records from the DigitalOcean Control Panel. This can make record management easier because DigitalOcean DNS integrates with Droplets and Load Balancers.
Prerequisites
To follow along with this tutorial, you need a domain name that you own or control.
To look up your domain’s registrar, you can use the ICANN WHOIS website or use the whois
command from a Linux or macOS terminal:
The registrar’s website is located on the Registrar URL line:
Excerpt of whois output
Domain Name: EXAMPLE.COM
Registry Domain ID: 2336799_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.iana.org
Registrar URL: http://res-dom.iana.org
Updated Date: 2017-08-14T07:04:03Z
Creation Date: 1995-08-14T04:00:00Z
. . .
To change the name servers, you’ll need to log into the domain registrar’s account management section. Once you’re logged in, follow the directions for your registrar below. If your registrar is not included, check their documentation for changing name servers.
Instructions
To use DigitalOcean DNS, you’ll need to update the name servers used by your domain registrar to DigitalOcean’s name servers instead. In this article, we’ll show you how to look up the registrar for your domain, then provide step-by-step guidance on how to update the name server settings for the following registrars:
This section of the guide was last updated on 16 February 2018
- Sign in to your GoDaddy account.
- On your account homepage, click the DNS tab on the right-hand side of the Domains main page. It will be located in between the Add Privacy and Manage tabs.
- On the next screen, navigate to the section of the page that reads name servers. Click Change.
- When prompted, select Custom from the drop-down menu, and enter the following name servers:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
You will have to click Add Name server to add the last entry. Click Save to apply your changes.
- Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to find out about what to do next.
This section of the guide was last updated on 16 February 2018
- Sign into your HostGator account.
- Click on the domain name that you want to use with your Droplet.
- You will then be presented with a Domain Overview. Click on Change under Name Servers.
- Select Manually set my name servers and enter the following:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
You must click the green + symbol to add the third name server.
- Click Save Name Servers to apply your changes. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read about what to do next.
This section of the guide was last updated on 10 October 2017
- Sign in to your Namecheap account, then click Domain List in the left-hand column. You will be presented with a dashboard listing all of your domains. Click the Manage button of the domain you’d like to update.
- In the name servers section of the resulting screen, select Custom DNS from the dropdown menu and enter the following name servers:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
- Click the green checkmark to apply your changes. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read on what to do next.
This section of the guide was last updated on 16 February 2018
- Sign in to your 1&1 account and go to Domains tab on the left side of your homepage.
- Once on the Domains landing page, click on your domain name.
- On the next page, click on Modify DNS Settings.
- Under Name Server Settings, select Other name servers. Enter the following name servers:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
- Scroll down to the bottom of the page and click Save to apply your changes. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read about what to do next.
This section of the guide was last updated on 16 February 2018
- Sign in to your Enom account.
- Under Domains, select Registered Domains. If you have multiple domains registered with Enom, select the domain name that you want to use with your Droplet.
- Select DNS Server Settings.
- Under User our Name Servers?, select Custom.
- Enter the following name servers:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
- Select save, then confirm your changes in the popup by selecting OK. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read about what to do next.
This section of the guide was last updated on 27 October 2014
- Sign in to your A Small Orange account and select My Domains.
- Find the domain name that you want to use with your Droplet, then select Manage Domain to the right of that domain name.
- By default, A Small Orange locks your domain to prevent it from being transferred away without your authorization. This means that before we can change the name servers, we’ll need to disable this lock. Select the Registrar Lock tab, then select Disable Registrar Lock.
- Select the name servers tab.
- Enter the following name servers:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
- Select Change name servers to apply your changes. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read on what to do next.
This section of the guide was last updated on 16 February 2018
- Sign in to your iwantmyname account and select the Domains tab.
- Select the domain name that you want to use with your Droplet.
- Under name servers, select update name servers.
- Unlike many other domain registrars, iwantmyname features a menu of popular web hosts with preconfigured DNS settings.
- Choose DigitalOcean (ns1-3.digitalocean.com) from the dropdown menu, and the fields below will be automatically filled in with the correct settings.
- Select Update name servers to apply your changes. Now you are ready to move on to connecting the domain with your Droplet in the DigitalOcean Control Panel. Check out the Conclusion section at the end of this article to read about what to do next.
There are additional domain registrars that you can use to link your domain to DigitalOcean’s name servers. The following list of registrars includes links to documentation on how to transfer domains to custom name servers. DigitalOcean’s name servers are:
- ns1.digitalocean.com
- ns2.digitalocean.com
- ns3.digitalocean.com
You can enter these name servers into the appropriate fields when prompted, following the examples outlined in the previous sections.
Summary
It will take some time for the name server changes to propagate after you’ve saved them. During this time, the domain registrar communicates the changes you’ve made with your ISP (Internet Service Provider). In turn, your ISP caches the new name servers to ensure quick site connections. This process usually takes about 30 minutes but could take up to a few hours depending on your registrar and your ISP’s communication methods.
What’s Next?
Once your domain is pointed to DigitalOcean’s name servers, you can begin managing its DNS records from the control panel. See How to Create, Edit, and Delete DNS Records and How to Add a Subdomain to Your Domain to get started. You can also learn more about how DNS works in An Introduction to DNS Terminology, Components, and Concepts