From e680dc3b75b40ff771b1428dee5517cda895f054 Mon Sep 17 00:00:00 2001
From: Evangelos Foutras <evangelos@foutrelis.com>
Date: Mon, 14 Mar 2022 08:12:33 +0200
Subject: [PATCH] tf-stage1: bump TTL to 86400 for NS records

The default TTL of 3600 seems a bit short for these.
---
 tf-stage1/archlinux.tf | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/tf-stage1/archlinux.tf b/tf-stage1/archlinux.tf
index cb6c878e3..d82e5b5af 100644
--- a/tf-stage1/archlinux.tf
+++ b/tf-stage1/archlinux.tf
@@ -394,6 +394,7 @@ resource "hetznerdns_record" "pkgbuild_com_origin_ns3" {
   name    = "@"
   value   = "helium.ns.hetzner.de."
   type    = "NS"
+  ttl     = 86400
 }
 
 resource "hetznerdns_record" "pkgbuild_com_origin_ns2" {
@@ -401,6 +402,7 @@ resource "hetznerdns_record" "pkgbuild_com_origin_ns2" {
   name    = "@"
   value   = "oxygen.ns.hetzner.com."
   type    = "NS"
+  ttl     = 86400
 }
 
 resource "hetznerdns_record" "pkgbuild_com_origin_ns1" {
@@ -408,6 +410,7 @@ resource "hetznerdns_record" "pkgbuild_com_origin_ns1" {
   name    = "@"
   value   = "hydrogen.ns.hetzner.com."
   type    = "NS"
+  ttl     = 86400
 }
 
 # TODO: Commented currently as we have no idea how to handle SOA stuff with Terraform:
@@ -439,6 +442,7 @@ resource "hetznerdns_record" "archlinux_org_origin_ns3" {
   name    = "@"
   value   = "helium.ns.hetzner.de."
   type    = "NS"
+  ttl     = 86400
 }
 
 resource "hetznerdns_record" "archlinux_org_origin_ns2" {
@@ -446,6 +450,7 @@ resource "hetznerdns_record" "archlinux_org_origin_ns2" {
   name    = "@"
   value   = "oxygen.ns.hetzner.com."
   type    = "NS"
+  ttl     = 86400
 }
 
 resource "hetznerdns_record" "archlinux_org_origin_ns1" {
@@ -453,6 +458,7 @@ resource "hetznerdns_record" "archlinux_org_origin_ns1" {
   name    = "@"
   value   = "hydrogen.ns.hetzner.com."
   type    = "NS"
+  ttl     = 86400
 }
 
 # TODO: Commented currently as we have no idea how to handle SOA stuff with Terraform:
-- 
GitLab