Skip to content

Commit

Permalink
feat: add TTLs
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig authored Feb 26, 2024
1 parent 7836e2e commit 1a66171
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions dnsconfig.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
// @ts-check
// <reference path="types-dnscontrol.d.ts" />

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:[email protected]; ruf=mailto:[email protected]; 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:[email protected]; ruf=mailto:[email protected]; fo=1", TXTTTL)
);

0 comments on commit 1a66171

Please sign in to comment.