IPv6 is available but a public address is not automatically assigned to a Vultr Optimized Cloud Compute instance unless enabled during instance configuration. Once enabled, you can manage the instance's IPv6 network settings and configure reverse DNS for specific networking tasks.
Follow this guide to add the IPv6 network information on a Vultr Optimized Cloud Compute instance using the Vultr Customer Portal, API, CLI, or Terraform.
Send a GET
request to the List Instances endpoint and note your target instance's ID.
$ curl "https://api.vultr.com/v2/instances" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Get Instance IPv6 Information endpoint to view the instance's IPv6 information.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv6" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a POST
request to the Create Instance Reverse IPv6 endpoint to create a new reverse DNS entry on the IPv6 address.
$ curl "https://api.vultr.com/v2/instances/{instance-id}/ipv6/reverse" \
-X POST \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
--data '{
"ip" : "<ipv6-address>",
"reverse" : "<domain>"
}'
List all available instances and note your target instance's ID.
$ vultr-cli instance list
List the instance's IPv6 network information.
$ vultr-cli instance ipv6 list <instance-id>
Create a new IPv6 reverse DNS entry on the instance.
$ vultr-cli instance reverse-dns set-ipv6 <instance-id> --entry <domain> --ip <ipv6-address>
Open your Terraform configuration for the existing Optimized Cloud Compute instance.
Enable IPv6 on the instance and (optionally) set reverse DNS.
# Enable IPv6 on the instance
resource "vultr_instance" "occ" {
# ...existing fields (region, plan, os_id, label, etc.)
enable_ipv6 = true
}
# Optional: set reverse DNS for the instance's primary IPv6
# (v6 address is known after the instance exists)
resource "vultr_reverse_ipv6" "occ_ptr" {
ip = vultr_instance.occ.v6_main_ip
reverse = "host.example.com."
}
Apply the configuration and observe the following output:
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
No comments yet.