servercore_private_dns_service_v1 resource
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 Servercore documentation.
Example usage
resource "servercore_private_dns_service_v1" "service_1" {
region = "ru-1"
project_id = servercore_project_v2.project_1.id
network_id = openstack_networking_network_v2.network_1.id
is_recursor_enabled = true
depends_on = [
openstack_networking_network_v2.network_1
]
}
Argument Reference
-
project_id- (Required) Unique identifier of the associated project. Retrieved from the servercore_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) Unique identifier of a network to connect to the DNS service. Retrieved from the openstack_networking_network_v2 resource. Learn more about Networks. -
is_recursor_enabled- (Optional) Enables or disables a recursive resolver that allows the service to resolve public domain names. Boolean flag, the default value isfalse.
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.