From c68703299decdea79064b5dadaeadd6344d2b940 Mon Sep 17 00:00:00 2001 From: Ketan Vijayvargiya Date: Sun, 5 May 2024 13:48:53 -0700 Subject: [PATCH] Move my DNS records to Cloudflare --- dnsconfig.js | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dnsconfig.js b/dnsconfig.js index f00cbe6..c0ecd0c 100644 --- a/dnsconfig.js +++ b/dnsconfig.js @@ -1,11 +1,8 @@ var REG_NONE = NewRegistrar("none"); -var REG_NAMECHEAP = NewRegistrar("namecheap"); // Unused right now. See note below. - -var DSP_DESEC = NewDnsProvider("desec"); var DSP_CLOUDFLARE = NewDnsProvider("cloudflare"); -D("walr.us.eu.org", REG_NONE, DnsProvider(DSP_DESEC), - DefaultTTL("5m"), +D("walr.us.eu.org", REG_NONE, DnsProvider(DSP_CLOUDFLARE), + CF_PROXY_DEFAULT_OFF, MX("@", 10, "mxa.mailgun.org."), MX("@", 10, "mxb.mailgun.org."), TXT("pic._domainkey", "k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCjR2XeDHangUyp5Ug274CcYYz+ZHbjcOkmybarbZkFJ9fIPAGfb2hg+hS/mAX4Sy/SC9hQ/fcgB1DCXqk71DYT63G3a9rzGxfpfKndS+sTc3qjOIGjgZ31G/znxW+9AY1AD3wVB0lEPyIqj/x9h9jsysSWuHI7WNPyPL25iJaYawIDAQAB"), @@ -21,8 +18,8 @@ D("walr.us.eu.org", REG_NONE, DnsProvider(DSP_DESEC), // Note: I would have used `REG_NAMECHEAP` below. However, Namecheap APIs require an IP address based // allowlist and I can't configure that for GitLab Runners. -D("ketanvijayvargiya.com", REG_NONE, DnsProvider(DSP_DESEC), - DefaultTTL("5m"), +D("ketanvijayvargiya.com", REG_NONE, DnsProvider(DSP_CLOUDFLARE), + CF_PROXY_DEFAULT_OFF, IGNORE("h", "A"), CNAME("a", "h.ketanvijayvargiya.com."), CNAME("*.a", "h.ketanvijayvargiya.com."),