0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 19:12:59 +00:00
terraform-provider-proxmox/docs/resources/virtual_environment_dns.md
Leah 4147ff6a29
feat: add import support for a lot of resources (#390)
* add import support for a lot of resources

* fix lints

* set user_id after importing

(cherry picked from commit c3d09ed00f6e1d7b0bb3ab01a1fc5c81510aa2e1)

* add tests, fix empty ID

* add import docs

* fix lint
2023-07-04 21:37:14 -04:00

53 lines
1.2 KiB
Markdown

---
layout: page
title: proxmox_virtual_environment_dns
permalink: /resources/virtual_environment_dns
nav_order: 5
parent: Resources
subcategory: Virtual Environment
---
# Resource: proxmox_virtual_environment_dns
Manages the DNS configuration for a specific node.
## Example Usage
```terraform
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.,
```bash
$ terraform import proxmox_virtual_environment_dns.first_node first-node
```