Guides - Domains

The Linode CLI is a wrapper around the Linode API that allows you to manage your Linode account from the command line. Virtually any task that can be done through the Linode Manager can be done through the CLI, making it an excellent tool for scripting.

Create a Linode account to try this guide with a $100 credit.
This credit will be applied to any valid services used during your first 60 days.
  1. List the Domains on your account:

    linode-cli domains list
    
  2. View all domain records in a specific Domain:

    linode-cli domains records-list $domain_id
    
  3. Delete a Domain:

    linode-cli domains delete $domain_id
    
  4. Create a Domain:

    linode-cli domains create --type master --domain www.example.com --soa_email email@example.com
    
  5. Create a new A record in a Domain:

    linode-cli domains records-create $domain_id --type A --name subdomain --target 192.0.2.0
    

This page was originally published on


Your Feedback Is Important

Let us know if this guide made it easy to get the answer you needed.