Skip to main content

selectel_private_dns_service_v1

Last update:
For your information

These instructions are a copy of the Terraform provider's Selectel Terraform documentation in the Terraform Registry.

Creates and manages a private DNS service for connecting a network to private DNS using public API v1. For more information about private DNS, see the official Selectel documentation.

Example usage

resource "selectel_private_dns_service_v1" "service_1" {
region = "ru-1"
project_id = selectel_vpc_project_v2.project_1.id
network_id = openstack_networking_network_v2.network_1.id

depends_on = [
openstack_networking_network_v2.network_1
]
}

Argument Reference

  • project_id - (Required) Unique identifier of the associated project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects.

  • region - (Required) Pool where the network is located, for example, ru-3. Learn more about available pools in the Availability matrix.

  • network_id - (Required) The ID of the network you want to connect to the DNS service. Retrieved from the openstack_networking_network_v2 resource. Learn more about Networks.

Attributes Reference

  • addresses - List of the DNS service IP addresses:
    • address - IP addresses in a subnet for accessing the DNS service.
    • cidr - Subnet IP address range in CIDR notation.