mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-04 21:14:05 +00:00
44 lines
936 B
Markdown
44 lines
936 B
Markdown
---
|
|
layout: page
|
|
title: DNS
|
|
permalink: /resources/dns
|
|
nav_order: 4
|
|
parent: Resources
|
|
---
|
|
|
|
# Resource: 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"
|
|
}
|
|
```
|
|
|
|
## Arguments Reference
|
|
|
|
* `domain` - (Required) The DNS search domain.
|
|
* `node_name` - (Required) A node name.
|
|
* `servers` - (Optional) The DNS servers.
|
|
|
|
## Attributes 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.
|