Vultr DocsLatest Content


How to Manage Domain DNS Records using Vultr DNS

Updated on 12 September, 2025

Configure and manage DNS records for your domains within the Vultr DNS management interface.


Managing DNS records enables the activation of specific values that define a domain services such as IP addresses, TXT and Mail Exchange (MX) details. Vultr DNS supports all types of DNS records you can create for your domain.

Follow this guide to manage domain DNS records using Vultr DNS, the Vultr Customer Portal, API, CLI, or Terraform.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  • Terraform
  1. Navigate to Products, expand the Network group and click DNS to view all domains in your account.
  2. Click your target domain to manage its DNS records.
  3. Click the Type drop-down and select your new DNS record type.
  4. Enter your desired DNS path in the Name field.
  5. Enter the DNS record value in the Data field.
  6. Keep the default Time to Leave (TTL) value in seconds or change it depending on your needs.
  7. Set the DNS record priority in the Priority field if applicable.
  8. Click Add Record within the Actions section to validate and apply the new DNS record on your domain.
  9. Select a DNS record and click Delete Records to remove the specific DNS record from your domain.
  1. Send a GET request to the List DNS domains endpoint and note the target domain in your output.

    console
    $ curl "https://api.vultr.com/v2/domains" \
       -X GET \
       -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a POST request to the Create a DNS Record endpoint to create a new DNS record on the domain.

    console
    $ curl "https://api.vultr.com/v2/domains/{dns-domain}/records" \
      -X POST \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  3. Send a GET request to the List Records endpoint to view all active DNS records and note the target record ID.

    console
    $ curl "https://api.vultr.com/v2/domains/{dns-domain}/records" \
      -X GET \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  4. Send a DELETE request to the Delete DNS Domain Record endpoint to the DNS record from your domain.

    console
    $ curl "https://api.vultr.com/v2/domains/{dns-domain}" \
      -X DELETE \
      -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  1. List all domains available in your Vultr account and note the target domain name.

    console
    $ vultr-cli dns domain list
    
  2. Create a new DNS record on the domain.

    console
    $ vultr-cli dns record create --domain <dns-domain> --type <record-type> --data <record-data> --name <record-specification> --ttl <ttl-value>
    
  3. List all active DNS records on the domain and note the target record ID.

    console
    $ vultr-cli dns record list <dns-domain>
    
  4. Delete the DNS record.

    console
    $ vultr-cli dns record delete <dns-domain> <dns-record-id>
    
  1. Open your Terraform configuration where the domain is defined.

  2. Add a record, update fields, or remove the block to delete.

    terraform
    resource "vultr_dns_record" "txt_spf" {
        domain = var.domain
        name   = "@"
        type   = "TXT"
        data   = "v=spf1 include:mail.example.com ~all"
        ttl    = 3600
    }
    
  3. Apply the configuration and observe the following output:

    Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Comments

No comments yet.