How to Manage DNS Zones on Vultr DNS
-
by Blog Admin
- 16
How to Manage DNS Zones on Vultr DNS
Configure and customize DNS zone behavior including TTL, DNSSEC, and other domain-specific settings.
DNS Zones contain domain mapping information and essential DNS data associated with specific resources. Managing DNS Zone settings enables the activation of SOA (State of Authority) information and DNSSEC (Domain Name System Security Extensions) on a domain.
Follow this guide to manage domain DNS Zones using Vultr DNS, the Vultr Customer Portal, API, CLI, or Terraform.
Vultr Customer Portal
- Navigate to Products, expand the Network group and click DNS to view all domains in your account.
- Click your target domain to manage its DNS records.
- Navigate to the Zone Settings tab.
- Toggle the DNSSEC Settings status option to Enabled to generate a new DNS key and DS Records with cryptographic keys to submit to your domain registrar.
- Replace
ns1.vultr.com
with your primary name server if available and enter your domain administrator email address in the E-mail Address field. - Click Update SOA Record to apply the domain SOA Information.
Vultr API
- 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}"
- Send a
GET
request to the Get DNSSec Info endpoint to view the domain’s DNSSec status.console$ curl "https://api.vultr.com/v2/domains/{dns-domain}/dnssec" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PUT
request to the Update a DNS Domain endpoint to enable DNSSec on the domain.console$ curl "https://api.vultr.com/v2/domains/{dns-domain}" \ -X PUT \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "dns_sec" : "enabled" }'
- Send a
GET
request to the Get SOA Information endpoint to view the domain’s SOA configuration.console$ curl "https://api.vultr.com/v2/domains/{dns-domain}/soa" \ -X GET \ -H "Authorization: Bearer ${VULTR_API_KEY}"
- Send a
PATCH
request to the Update SOA Information endpoint to update the domain’s SOA configuration.console$ curl "https://api.vultr.com/v2/domains/{dns-domain}/soa" \ -X PATCH \ -H "Authorization: Bearer ${VULTR_API_KEY}" \ -H "Content-Type: application/json" \ --data '{ "nsprimary" : "primary-nameserver", "email" : "adminEmail" }'
Vultr CLI
- List all domains in your Vultr account and note the target domain.
console
$ vultr-cli dns domain list
- View the domain’s DNSSec status.
console
$ vultr-cli dns domain dnssec-info <domainName>
- Enable DNSSec on the domain.
console
$ vultr-cli dns domain dnssec <domainName> --enabled enabled
- View the domain’s SOA information.
console
$ vultr-cli dns domain soa-info <domainName>
- Update the domain’s SOA information.
console
$ vultr-cli dns domain soa-update <domainName> --email <adminEmail>--ns-primary <primary-nameserver>
Terraform
- Open your Terraform configuration where the domain is defined.
- DNSSEC is managed via
vultr_dns_domain
attributes; SOA fields are not exposed via Terraform at this time.terraformresource "vultr_dns_domain" "example" { domain = "example.com" dns_sec = "enabled" # enabled | disabled }
- Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
How to Manage DNS Zones on Vultr DNS Configure and customize DNS zone behavior including TTL, DNSSEC, and other domain-specific settings. DNS Zones contain domain mapping information and essential DNS data associated with specific resources. Managing DNS Zone settings enables the activation of SOA (State of Authority) information and DNSSEC…
How to Manage DNS Zones on Vultr DNS Configure and customize DNS zone behavior including TTL, DNSSEC, and other domain-specific settings. DNS Zones contain domain mapping information and essential DNS data associated with specific resources. Managing DNS Zone settings enables the activation of SOA (State of Authority) information and DNSSEC…