Add reverse DNS (PTR) records to Terraform config

IPv4 and IPv6 PTR records pointing to trails.cool.
These were applied to the server but missing from the committed config.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-03-23 00:15:28 +01:00
parent 223f75b4c3
commit bf4eb81fcb
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -74,6 +74,20 @@ resource "hcloud_firewall_attachment" "trails" {
server_ids = [hcloud_server.trails.id] server_ids = [hcloud_server.trails.id]
} }
# Reverse DNS
resource "hcloud_rdns" "trails_ipv4" {
server_id = hcloud_server.trails.id
ip_address = hcloud_server.trails.ipv4_address
dns_ptr = "trails.cool"
}
resource "hcloud_rdns" "trails_ipv6" {
server_id = hcloud_server.trails.id
ip_address = hcloud_server.trails.ipv6_address
dns_ptr = "trails.cool"
}
# DNS # DNS
resource "hcloud_zone_rrset" "root_a" { resource "hcloud_zone_rrset" "root_a" {