0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 11:02:59 +00:00
terraform-provider-proxmox/docs/resources/virtual_environment_dns.md
Pavel Boldyrev e2717a9a9e
feat(docs): add initial mini-howtos for VM (#730)
* chore(docs): minor fixes and linting

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

* chore(docs): add VM mini-howtos with examples

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

* address peer-review feedback

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

* vscode settings

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>

---------

Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2023-11-28 12:38:47 -05:00

1.2 KiB

layout title permalink nav_order parent subcategory
page proxmox_virtual_environment_dns /resources/virtual_environment_dns 5 Resources Virtual Environment

Resource: proxmox_virtual_environment_dns

Manages the DNS configuration for a specific node.

Example Usage

resource "proxmox_virtual_environment_dns" "first_node_dns_configuration" {
  domain    = data.proxmox_virtual_environment_dns.first_node_dns_configuration.domain
  node_name = data.proxmox_virtual_environment_dns.first_node_dns_configuration.node_name

  servers = [
    "1.1.1.1",
    "1.0.0.1",
  ]
}

data "proxmox_virtual_environment_dns" "first_node_dns_configuration" {
  node_name = "first-node"
}

Argument Reference

  • domain - (Required) The DNS search domain.
  • node_name - (Required) A node name.
  • servers - (Optional) The DNS servers.

Attribute Reference

There are no additional attributes available for this resource.

Important Notes

Be careful not to use this resource multiple times for the same node.

Import

Instances can be imported using the node_name, e.g.,

terraform import proxmox_virtual_environment_dns.first_node first-node