Add rdns to ipv6 addresses
Co-Authored-By: Manuel <git@huesers.de>
This commit is contained in:
parent
3ce28b14b4
commit
8a420a5c35
1 changed files with 8 additions and 1 deletions
|
@ -58,13 +58,20 @@ resource "hcloud_server" "nodes" {
|
|||
}
|
||||
}
|
||||
|
||||
resource "hcloud_rdns" "nodes_rdns" {
|
||||
resource "hcloud_rdns" "nodes_rdns_ipv4" {
|
||||
for_each = local.hetzner_hosts
|
||||
server_id = hcloud_server.nodes[each.key].id
|
||||
ip_address = hcloud_server.nodes[each.key].ipv4_address
|
||||
dns_ptr = each.value.rdns
|
||||
}
|
||||
|
||||
resource "hcloud_rdns" "nodes_rdns_ipv6" {
|
||||
for_each = local.hetzner_hosts
|
||||
server_id = hcloud_server.nodes[each.key].id
|
||||
ip_address = hcloud_server.nodes[each.key].ipv6_address
|
||||
dns_ptr = each.value.rdns
|
||||
}
|
||||
|
||||
locals {
|
||||
default_firewall_source_ips = [ "0.0.0.0/0", "::/0" ]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue