From 6a23d8cab539bb1d7ed0c6c466942f2199cfe99d Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sun, 31 Dec 2023 18:22:21 +0000 Subject: [PATCH] Use sys domain resource for reverse DNS --- terraform/casey_vps.tf | 4 ++-- terraform/walker_vps.tf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terraform/casey_vps.tf b/terraform/casey_vps.tf index 24714ad..a3cfa41 100644 --- a/terraform/casey_vps.tf +++ b/terraform/casey_vps.tf @@ -77,10 +77,10 @@ resource "linode_firewall" "casey" { resource "linode_rdns" "casey_reverse_ipv4" { address = linode_instance.casey.ip_address - rdns = "casey.sys.theorangeone.net" + rdns = cloudflare_record.sys_domain_casey.hostname } resource "linode_rdns" "casey_reverse_ipv6" { address = split("/", linode_instance.casey.ipv6)[0] - rdns = "casey.sys.theorangeone.net" + rdns = cloudflare_record.sys_domain_casey.hostname } diff --git a/terraform/walker_vps.tf b/terraform/walker_vps.tf index 2dc8116..d5fb40a 100644 --- a/terraform/walker_vps.tf +++ b/terraform/walker_vps.tf @@ -18,11 +18,11 @@ resource "vultr_instance" "walker" { resource "vultr_reverse_ipv4" "walker_reverse_ipv4" { instance_id = vultr_instance.walker.id ip = vultr_instance.walker.main_ip - reverse = "walker.sys.theorangeone.net" + reverse = cloudflare_record.sys_domain_walker.hostname } resource "vultr_reverse_ipv6" "walker_reverse_ipv6" { instance_id = vultr_instance.walker.id ip = vultr_instance.walker.v6_main_ip - reverse = "walker.sys.theorangeone.net" + reverse = cloudflare_record.sys_domain_walker.hostname }