Skip to main content

DigitalOcean

Updated Feb 05, 2023 ·

Overview

You can use DigitalOcean to create and manage cloud resources for your lab work.

  1. Go to DigitalOcean and sign up for an account
  2. Add a payment method
  3. Follow the on-screen setup steps
  4. Complete any additional verification if required

Create a Project

A project helps you organize related resources in DigitalOcean.

  1. Go to Projects in your DigitalOcean dashboard
  2. Click New Project
  3. Enter a name and description
  4. Click Create Project

Adding a Domain

You can add your domain to manage DNS records in DigitalOcean.

Note: You need to already own a domain or purchase one first.

  1. Go to Networking > Domains
  2. Enter your domain name
  3. Click Add Domain

Use DO Name Servers

To manage your domain’s DNS with DigitalOcean, you need to point it to DigitalOcean’s name servers. This is done by updating your domain’s settings at your registrar (where you bought your domain).

info

DigitalOcean is not a domain registrar and does not sell domains.

Update your registrar’s name server settings to:

ns1.digitalocean.com
ns2.digitalocean.com
ns3.digitalocean.com

This process is often called “using custom name servers”. For step-by-step instructions, see Update Your Domain’s Delegation

After setting up the nameservers, the next step is setup yoru DNS records in DigitalOcean.

info

You can change your domain’s custom nameservers at the registrar as many times as you want. There’s no hard limit from registrars like Namecheap, GoDaddy, etc.

Generate Personal Access Token

To use DigitalOcean’s API, you need to create an API token with the right permissions. Follow these steps:

  1. Go to your DigitalOcean dashboard > API
  2. Click Generate New Token
  3. Enter a name for the token
  4. Set an expiration date
  5. Choose the scopes (permissions)
  6. Click Generate Token

For labs, you can set the scope to Full Access. After doing the lab, make sure to delete the token.