The process of setting up and configuring a new server or service to make it ready for use.
Vultr DNS is a domain record management service that enables you to manage DNS records and zones using your domain. Vultr DNS uses Vultr's nameservers that run on the Anycast network to enable fast DNS resolution and application of domain changes.
Follow this guide to add a domain to Vultr DNS in your Vultr account using the Vultr Customer Portal, API, CLI, or Terraform.
ns1.vultr.com
, ns2.vultr.com
to manage it using Vultr DNS.
Send a GET
request to the List DNS Domains endpoint and verify all active domains in your Vultr account.
$ curl "https://api.vultr.com/v2/domains" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create DNS Domain endpoint to create a new domain to manage using Vultr DNS.
$ curl "https://api.vultr.com/v2/domains" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"domain" : "<domain>",
"ip" : "<default-IP>",
"dns_sec" : "enabled"
}'
Visit the Create DNS Domain API page to view additional attributes to to apply on the domain.
List all domains in your Vultr account.
$ vultr-cli dns domain list
Create a new domain to manage using Vultr DNS.
$ vultr-cli dns domain create --domain <domain> --ip <default-IP>
Run vultr-cli dns domain create --help
to view additional options to apply on the domain.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Create a DNS domain and an A record, then apply.
resource "vultr_dns_domain" "example" {
domain = "example.com"
}
resource "vultr_dns_record" "www" {
domain = vultr_dns_domain.example.domain
name = "www"
type = "A"
data = "192.0.2.1"
ttl = 300
}
Apply the configuration and observe the following output:
Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
No comments yet.