Use the DigitalOcean API to create, configure, list, and delete VPCs.
DNS Reference
Validated on 19 Jun 2018 • Last edited on 17 Jun 2025
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.
DigitalOcean API and CLI
The DigitalOcean API lets you manage resources programmatically with standard HTTP requests. All actions available in the control panel are also available through the API.
doctl is the command-line interface for the DigitalOcean API. It supports most of the same actions available in the API and DigitalOcean Control Panel.
doctl supports managing domains and DNS records from the command line. See the doctl documentation or use doctl compute domain --help for more information.
Use the subcommands of doctl compute domain to manage domains you have purchased from a domain name registrar that you are managing through the DigitalOcean DNS interface.