From 630919e13ab02431842f72578f3b5c60896bb9f6 Mon Sep 17 00:00:00 2001
From: Andrea Galbusera <gizero@gmail.com>
Date: Fri, 22 Jan 2021 09:46:53 +0100
Subject: [PATCH] infra: add IPv4 and IPv6 rdns records for fcub01

---
 infra.tf | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/infra.tf b/infra.tf
index a6809a7..9e14239 100644
--- a/infra.tf
+++ b/infra.tf
@@ -18,6 +18,18 @@ resource "hcloud_server" "fcub01" {
   }
 }
 
+resource "hcloud_rdns" "fcub01_rdns_ipv4" {
+  server_id  = hcloud_server.fcub01.id
+  ip_address = hcloud_server.fcub01.ipv4_address
+  dns_ptr    = "fcub01.fluidware.it"
+}
+
+resource "hcloud_rdns" "fcub01_rdns_ipv6" {
+  server_id  = hcloud_server.fcub01.id
+  ip_address = hcloud_server.fcub01.ipv6_address
+  dns_ptr    = "fcub01.fluidware.it"
+}
+
 data "linode_domain" "fluidware-it" {
   domain = "fluidware.it"
 }
-- 
GitLab