dns: lower TTLs to 30 seconds
ci/woodpecker/push/dns Pipeline was successful Details

feature/glauca
Ariadne Conill 2022-07-17 18:57:58 +00:00
parent d42a9863a7
commit 94a034d9b1
1 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,7 @@ resource "linode_domain_record" "kn_linode_dallas_ingress_v4" {
name = "kn-linode-dallas.ingress" name = "kn-linode-dallas.ingress"
record_type = "A" record_type = "A"
target = "50.116.20.32" target = "50.116.20.32"
ttl_sec = 30
} }
resource "linode_domain_record" "kn_linode_dallas_ingress_v6" { resource "linode_domain_record" "kn_linode_dallas_ingress_v6" {
@ -41,6 +42,7 @@ resource "linode_domain_record" "kn_linode_dallas_ingress_v6" {
name = "kn-linode-dallas.ingress" name = "kn-linode-dallas.ingress"
record_type = "AAAA" record_type = "AAAA"
target = "2600:3c00::f03c:93ff:fee2:d097" target = "2600:3c00::f03c:93ff:fee2:d097"
ttl_sec = 30
} }
// Treehouse cluster: kn-oci-sanjose // Treehouse cluster: kn-oci-sanjose
@ -50,6 +52,7 @@ resource "linode_domain_record" "kn_oci_sanjose_ingress_v4" {
name = "kn-oci-sanjose.ingress" name = "kn-oci-sanjose.ingress"
record_type = "A" record_type = "A"
target = "152.67.234.163" target = "152.67.234.163"
ttl_sec = 30
} }
resource "linode_domain_record" "kn_oci_sanjose_ingress_v6" { resource "linode_domain_record" "kn_oci_sanjose_ingress_v6" {
@ -57,6 +60,7 @@ resource "linode_domain_record" "kn_oci_sanjose_ingress_v6" {
name = "kn-oci-sanjose.ingress" name = "kn-oci-sanjose.ingress"
record_type = "AAAA" record_type = "AAAA"
target = "2603:c024:c000:100::80" target = "2603:c024:c000:100::80"
ttl_sec = 30
} }
// Treehouse services: Gitea // Treehouse services: Gitea
@ -65,6 +69,7 @@ resource "linode_domain_record" "gitea_v4" {
name = "gitea" name = "gitea"
record_type = "A" record_type = "A"
target = "104.250.236.2" target = "104.250.236.2"
ttl_sec = 30
} }
resource "linode_domain_record" "gitea_v6" { resource "linode_domain_record" "gitea_v6" {
@ -72,6 +77,7 @@ resource "linode_domain_record" "gitea_v6" {
name = "gitea" name = "gitea"
record_type = "AAAA" record_type = "AAAA"
target = "2602:fd37:1:0:104:250:236:2" target = "2602:fd37:1:0:104:250:236:2"
ttl_sec = 30
} }
resource "linode_domain_record" "woodpecker_cname" { resource "linode_domain_record" "woodpecker_cname" {
@ -79,6 +85,7 @@ resource "linode_domain_record" "woodpecker_cname" {
name = "woodpecker" name = "woodpecker"
record_type = "CNAME" record_type = "CNAME"
target = "gitea.treehouse.systems" target = "gitea.treehouse.systems"
ttl_sec = 30
} }
// Treehouse services: Mastodon (running on kn-linode-dallas) // Treehouse services: Mastodon (running on kn-linode-dallas)
@ -87,6 +94,7 @@ resource "linode_domain_record" "social_cname" {
name = "social" name = "social"
record_type = "CNAME" record_type = "CNAME"
target = "kn-linode-dallas.ingress.treehouse.systems" target = "kn-linode-dallas.ingress.treehouse.systems"
ttl_sec = 30
} }
resource "linode_domain_record" "cache_cname" { resource "linode_domain_record" "cache_cname" {
@ -94,6 +102,7 @@ resource "linode_domain_record" "cache_cname" {
name = "cache" name = "cache"
record_type = "CNAME" record_type = "CNAME"
target = "treehousesystems.b-cdn.net" target = "treehousesystems.b-cdn.net"
ttl_sec = 30
} }
// Treehouse services: Discord redirector. // Treehouse services: Discord redirector.
@ -105,6 +114,7 @@ resource "linode_domain_record" "discord_cname" {
name = "discord" name = "discord"
record_type = "CNAME" record_type = "CNAME"
target = "kn-oci-sanjose.ingress.treehouse.systems" target = "kn-oci-sanjose.ingress.treehouse.systems"
ttl_sec = 30
} }
// Treehouse services: Minecraft (OVH, managed by Kenneth) // Treehouse services: Minecraft (OVH, managed by Kenneth)
@ -113,6 +123,7 @@ resource "linode_domain_record" "minecraft_cname" {
name = "survival.minecraft" name = "survival.minecraft"
record_type = "CNAME" record_type = "CNAME"
target = "survival.treehouse.fork.run" target = "survival.treehouse.fork.run"
ttl_sec = 30
} }
// Apex domain settings. // Apex domain settings.
@ -121,6 +132,7 @@ resource "linode_domain_record" "apex_v4" {
name = "" name = ""
record_type = "A" record_type = "A"
target = "152.67.234.163" target = "152.67.234.163"
ttl_sec = 30
} }
resource "linode_domain_record" "apex_v6" { resource "linode_domain_record" "apex_v6" {
@ -128,6 +140,7 @@ resource "linode_domain_record" "apex_v6" {
name = "" name = ""
record_type = "AAAA" record_type = "AAAA"
target = "2603:c024:c000:100::80" target = "2603:c024:c000:100::80"
ttl_sec = 30
} }
resource "linode_domain_record" "apex_mx" { resource "linode_domain_record" "apex_mx" {
@ -136,6 +149,7 @@ resource "linode_domain_record" "apex_mx" {
record_type = "MX" record_type = "MX"
target = "mx1.mailbun.net" target = "mx1.mailbun.net"
priority = "5" priority = "5"
ttl_sec = 30
} }
resource "linode_domain_record" "apex_spf" { resource "linode_domain_record" "apex_spf" {
@ -143,6 +157,7 @@ resource "linode_domain_record" "apex_spf" {
name = "" name = ""
record_type = "TXT" record_type = "TXT"
target = "v=spf1 a mx include:spf.mailbun.net ~all" target = "v=spf1 a mx include:spf.mailbun.net ~all"
ttl_sec = 30
} }
resource "linode_domain_record" "apex_dmarc" { resource "linode_domain_record" "apex_dmarc" {
@ -150,6 +165,7 @@ resource "linode_domain_record" "apex_dmarc" {
name = "_dmarc" name = "_dmarc"
record_type = "TXT" record_type = "TXT"
target = "v=DMARC1; p=none; fo=1; rua=mailto:admin@treehouse.systems" target = "v=DMARC1; p=none; fo=1; rua=mailto:admin@treehouse.systems"
ttl_sec = 30
} }
resource "linode_domain_record" "apex_domainkey" { resource "linode_domain_record" "apex_domainkey" {
@ -157,4 +173,5 @@ resource "linode_domain_record" "apex_domainkey" {
name = "mailbun._domainkey" name = "mailbun._domainkey"
record_type = "TXT" record_type = "TXT"
target = "v=DKIM1; k=rsa; s=email; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlJGZN1aCAUd8CqyQA7Akzkvns+Wq/w70ft2xr0B8jFp0DtW8BtyLLAsErpIp5ZTDgReYGgL7cNcSsNQRn+d6ZaOBGlC/gH1T3KYfbsvavOdnbGx9gofi6x8I5QOOLhp7epK5YkaP/Igg58Zm0ni3jdeMCuX+qkJVqn2WVv8IcRtIA3zJrTYOW3lGCj1ieezl5ref+43mFvcUqidToR9XyHNmi1RowmWAofbZASXkNqZiR1P2Jw3s7q6p0fAEz6bODNOmngIlRAaKjBfDVezsaTeQJwsMg9g58GigVTSb9gMHRZon61yxWcCJtcivPug7xAVlVU+MMkDr7MfvUke5KQIDAQAB" target = "v=DKIM1; k=rsa; s=email; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlJGZN1aCAUd8CqyQA7Akzkvns+Wq/w70ft2xr0B8jFp0DtW8BtyLLAsErpIp5ZTDgReYGgL7cNcSsNQRn+d6ZaOBGlC/gH1T3KYfbsvavOdnbGx9gofi6x8I5QOOLhp7epK5YkaP/Igg58Zm0ni3jdeMCuX+qkJVqn2WVv8IcRtIA3zJrTYOW3lGCj1ieezl5ref+43mFvcUqidToR9XyHNmi1RowmWAofbZASXkNqZiR1P2Jw3s7q6p0fAEz6bODNOmngIlRAaKjBfDVezsaTeQJwsMg9g58GigVTSb9gMHRZon61yxWcCJtcivPug7xAVlVU+MMkDr7MfvUke5KQIDAQAB"
ttl_sec = 30
} }