Skip to content

Commit

Permalink
refactor: refactor dnsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbrig committed Feb 26, 2024
1 parent 5a9005c commit dcfca73
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions dnsconfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,26 @@
// <reference path="types-dnscontrol.d.ts" />

// var REG_PORKBUN = NewRegistrar("porkbun");

// var DNS_BIND = NewDnsProvider("bind");
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),
NAMESERVER("curitiba.ns.porkbun.com."),
NAMESERVER("fortaleza.ns.porkbun.com."),
NAMESERVER("maceio.ns.porkbun.com."),
NAMESERVER("salvador.ns.porkbun.com."),
ALIAS("@", "pixie.porkbun.com."),
CNAME("*", "pixie.porkbun.com."),
CNAME("www", "noclocks.dev."),
CNAME("docs", "noclocks.github.io."),
TXT("_github-pages-challenge-noclocks", "8c88c3f5791a75585aedc0a0e821fb", TTL(600),
CNAME("blog", "39843493.group43.sites.hubspot.net."),
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)
CNAME("*", "pixie.porkbun.com."),
CNAME("docs", "noclocks.github.io."),
MX("@", 10, "fwd1.porkbun.com.", TTL(600)),
MX("@", 20, "fwd2.porkbun.com.", TTL(600)),
TXT("@", "v=spf1 include:_spf.porkbun.com ~all", TTL(300)),
TXT("default._domainkey", "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5wVNukpz+fpCVe3pTPph5GNNgljwTdL43ykZ2P4Vm/HiwFqsGGpuZaMhbVJtmmnItAAjdQfCqITYvMbQFU0DYAZpJencyelIU4bznlZM8NvwPlFo9so2C1zDfUs2Y9rgF71+4V/fyu3tXa0r8l8r6STpYGB0GsmL6idTZy3PJKQIDAQAB", TTL(300)),
TXT("_dmarc", "v=DMARC1; p=quarantine; rua=mailto:[email protected]; ruf=mailto:[email protected]; fo=1", TTL(300)),
TXT("_acme-challenge", "YfcZoPb1JoXtiwUP0k4aimMlw712-NxzrrIsxMAJJtY", TTL(600)),
TXT("_acme-challenge", "duFW0ARxb60Rd6snfskR9b4db08jaoGVrM_dGY-PUcA", TTL(600)),
TXT("_github-pages-challenge-noclocks", "8c88c3f5791a75585aedc0a0e821fb", TTL(600))
);

0 comments on commit dcfca73

Please sign in to comment.