From 1a661710ca8b3b5ca0ed85f8ec6cb74da4a66fcc Mon Sep 17 00:00:00 2001 From: Jimmy Briggs Date: Mon, 26 Feb 2024 10:45:01 -0500 Subject: [PATCH] feat: add TTLs --- dnsconfig.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index e8daea8..c4a545b 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -1,20 +1,25 @@ // @ts-check // -var REG_NONE = NewRegistrar("none"); // var REG_PORKBUN = NewRegistrar("porkbun"); + +var REG_NONE = NewRegistrar("none"); var DSP_PORKBUN = NewDnsProvider("porkbun"); +var MXTTL = TTL(600); +var TXTTTL = TTL(300); + D("noclocks.dev", REG_NONE, DnsProvider(DSP_PORKBUN), + DefaultTTL(600), ALIAS("@", "pixie.porkbun.com."), CNAME("*", "pixie.porkbun.com."), CNAME("www", "noclocks.dev."), CNAME("docs", "noclocks.github.io."), - TXT("_github-pages-challenge-noclocks", "8c88c3f5791a75585aedc0a0e821fb"), + TXT("_github-pages-challenge-noclocks", "8c88c3f5791a75585aedc0a0e821fb", TTL(600), CNAME("blog", "39843493.group43.sites.hubspot.net."), - MX("@", "fwd1.porkbun.com"), - MX("@", "f2d2.porkbun.com"), - TXT("@", "v=spf1 include:_spf.porkbun.com ~all"), - TXT("default._domainkey", "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5wVNukpz+fpCVe3pTPph5GNNgljwTdL43ykZ2P4Vm/HiwFqsGGpuZaMhbVJtmmnItAAjdQfCqITYvMbQFU0DYAZpJencyelIU4bznlZM8NvwPlFo9so2C1zDfUs2Y9rgF71+4V/fyu3tXa0r8l8r6STpYGB0GsmL6idTZy3PJKQIDAQAB"), - TXT("_dmarc", "v=DMARC1; p=quarantine; rua=mailto:25f8c5e6@mxtoolbox.dmarc-report.com; ruf=mailto:25f8c5e6@forensics.dmarc-report.com; fo=1") + MX("@", 10, "fwd1.porkbun.com", MXTTL), + MX("@", 20, "f2d2.porkbun.com", MXTTL), + TXT("@", "v=spf1 include:_spf.porkbun.com ~all", TXTTTL), + TXT("default._domainkey", "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5wVNukpz+fpCVe3pTPph5GNNgljwTdL43ykZ2P4Vm/HiwFqsGGpuZaMhbVJtmmnItAAjdQfCqITYvMbQFU0DYAZpJencyelIU4bznlZM8NvwPlFo9so2C1zDfUs2Y9rgF71+4V/fyu3tXa0r8l8r6STpYGB0GsmL6idTZy3PJKQIDAQAB", TXTTTL), + TXT("_dmarc", "v=DMARC1; p=quarantine; rua=mailto:25f8c5e6@mxtoolbox.dmarc-report.com; ruf=mailto:25f8c5e6@forensics.dmarc-report.com; fo=1", TXTTTL) );