This commit is contained in:
Adithya 2024-11-08 10:41:16 +05:30
parent d7bcde18c5
commit c2290ccdae
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -4,78 +4,57 @@
var REG_DYNADOT = NewRegistrar("dynadot"); var REG_DYNADOT = NewRegistrar("dynadot");
var DNSP_HETZNER = NewDnsProvider("hetzner"); var DNSP_HETZNER = NewDnsProvider("hetzner");
D("ironyofprivacy.org", REG_DYNADOT, DnsProvider(DNSP_HETZNER),
MX("@", 10, "in1-smtp.messagingengine.com."),
MX("@", 20, "in2-smtp.messagingengine.com."),
CNAME("mesmtp._domainkey", "mesmtp.ironyofprivacy.org.dkim.fmhosted.com."),
CNAME("fm1._domainkey", "fm1.ironyofprivacy.org.dkim.fmhosted.com."),
CNAME("fm2._domainkey", "fm2.ironyofprivacy.org.dkim.fmhosted.com."),
CNAME("fm3._domainkey", "fm3.ironyofprivacy.org.dkim.fmhosted.com."),
SRV("_submission._tcp", 0, 0, 0, "."),
SRV("_imap._tcp", 0, 0, 0, "."),
SRV("_pop3._tcp", 0, 0, 0, "."),
SRV("_submissions._tcp", 0, 1, 465, "smtp.fastmail.com."),
SRV("_imaps._tcp", 0, 1, 993, "imap.fastmail.com."),
SRV("_pop3s._tcp", 0, 1, 995, "pop.fastmail.com."),
SRV("_jmap._tcp", 0, 1, 443, "api.fastmail.com."),
SRV("_carddav._tcp", 0, 0, 0, "."),
SRV("_carddavs._tcp", 0, 1, 443, "carddav.fastmail.com."),
SRV("_caldav._tcp", 0, 0, 0, "."),
SRV("_caldavs._tcp", 0, 1, 443, "caldav.fastmail.com."),
SRV("_autodiscover._tcp", 0, 1, 443, "autodiscover.fastmail.com."),
TXT("@", "v=spf1 include:spf.messagingengine.com ?all"),
TXT("_dmarc", "v=DMARC1; p=none;"),
END);
D("adtya.xyz", REG_DYNADOT, DnsProvider(DNSP_HETZNER), D("adtya.xyz", REG_DYNADOT, DnsProvider(DNSP_HETZNER),
DefaultTTL("900s"),
A("@", "165.232.180.97"), A("@", "165.232.180.97"),
CNAME("if3", "if3.fly.dev."), CNAME("if3", "if3.fly.dev."),
CNAME("proofs", "adtya.xyz."), CNAME("proofs", "adtya.xyz."),
CNAME("wiki", "adtya.xyz."), CNAME("wiki", "adtya.xyz."),
CNAME("www", "adtya.xyz."), CNAME("www", "adtya.xyz."),
CNAME("mesmtp._domainkey", "mesmtp.adtya.xyz.dkim.fmhosted.com."),
CNAME("fm1._domainkey", "fm1.adtya.xyz.dkim.fmhosted.com."),
CNAME("fm2._domainkey", "fm2.adtya.xyz.dkim.fmhosted.com."),
CNAME("fm3._domainkey", "fm3.adtya.xyz.dkim.fmhosted.com."),
MX("@", 10, "in2-smtp.messagingengine.com."),
MX("@", 10, "in1-smtp.messagingengine.com."),
SRV("_autodiscover._tcp", 0, 1, 443, "autodiscover.fastmail.com."),
SRV("_caldav._tcp", 0, 0, 0, "."),
SRV("_caldavs._tcp", 0, 1, 443, "caldav.fastmail.com."),
SRV("_carddav._tcp", 0, 0, 0, "."),
SRV("_imap._tcp", 0, 0, 0, "."),
SRV("_imaps._tcp", 0, 1, 993, "imap.fastmail.com."),
SRV("_jmap._tcp", 0, 1, 443, "jmap.fastmail.com."),
SRV("_pop3._tcp", 0, 0, 0, "."),
SRV("_pop3s._tcp", 10, 1, 995, "pop.fastmail.com."),
SRV("_submission._tcp", 0, 1, 587, "smtp.fastmail.com."),
TXT("@", "v=spf1 include:spf.messagingengine.com ?all"),
TXT("_dmarc", "v=DMARC1; p=none;"),
TXT("_github-pages-challenge-adtya", "c83b7cfc33c02c0499d401da51b801"), TXT("_github-pages-challenge-adtya", "c83b7cfc33c02c0499d401da51b801"),
END); END);
D("acomputer.lol", REG_DYNADOT, DnsProvider(DNSP_HETZNER), D("acomputer.lol", REG_DYNADOT, DnsProvider(DNSP_HETZNER),
DefaultTTL("900s"),
A("@", "165.232.180.97"), A("@", "165.232.180.97"),
CNAME("forge", "acomputer.lol."), CNAME("forge", "acomputer.lol."),
CNAME("matrix", "acomputer.lol."), CNAME("matrix", "acomputer.lol."),
CNAME("ntfy", "acomputer.lol."), CNAME("ntfy", "acomputer.lol."),
CNAME("proxy", "acomputer.lol."), CNAME("proxy", "acomputer.lol."),
CNAME("www", "acomputer.lol."), CNAME("www", "acomputer.lol."),
CNAME("mesmtp._domainkey", "mesmtp.acomputer.lol.dkim.fmhosted.com."), END);
CNAME("fm1._domainkey", "fm1.acomputer.lol.dkim.fmhosted.com."),
CNAME("fm2._domainkey", "fm2.acomputer.lol.dkim.fmhosted.com."), D("ironyofprivacy.org", REG_DYNADOT, DnsProvider(DNSP_HETZNER),
CNAME("fm3._domainkey", "fm3.acomputer.lol.dkim.fmhosted.com."), DefaultTTL("900s"),
MX("@", 10, "in2-smtp.messagingengine.com."), END);
function SETUP_FASTMAIL(domain) {
D_EXTEND(domain,
DefaultTTL("1d"),
MX("@", 10, "in1-smtp.messagingengine.com."), MX("@", 10, "in1-smtp.messagingengine.com."),
MX("@", 20, "in2-smtp.messagingengine.com."),
CNAME("mesmtp._domainkey", "mesmtp." + domain + ".dkim.fmhosted.com."),
CNAME("fm1._domainkey", "fm1." + domain + ".dkim.fmhosted.com."),
CNAME("fm2._domainkey", "fm2." + domain + ".dkim.fmhosted.com."),
CNAME("fm3._domainkey", "fm3." + domain + ".dkim.fmhosted.com."),
SRV("_submission._tcp", 0, 0, 0, "."),
SRV("_imap._tcp", 0, 0, 0, "."),
SRV("_pop3._tcp", 0, 0, 0, "."),
SRV("_submissions._tcp", 0, 1, 465, "smtp.fastmail.com."),
SRV("_imaps._tcp", 0, 1, 993, "imap.fastmail.com."),
SRV("_pop3s._tcp", 10, 1, 995, "pop.fastmail.com."),
SRV("_jmap._tcp", 0, 1, 443, "api.fastmail.com."),
SRV("_autodiscover._tcp", 0, 1, 443, "autodiscover.fastmail.com."), SRV("_autodiscover._tcp", 0, 1, 443, "autodiscover.fastmail.com."),
SRV("_carddav._tcp", 0, 0, 0, "."),
SRV("_carddavs._tcp", 0, 1, 443, "carddav.fastmail.com."),
SRV("_caldav._tcp", 0, 0, 0, "."), SRV("_caldav._tcp", 0, 0, 0, "."),
SRV("_caldavs._tcp", 0, 1, 443, "caldav.fastmail.com."), SRV("_caldavs._tcp", 0, 1, 443, "caldav.fastmail.com."),
SRV("_carddav._tcp", 0, 0, 0, "."),
SRV("_imap._tcp", 0, 0, 0, "."),
SRV("_imaps._tcp", 0, 1, 993, "imap.fastmail.com."),
SRV("_pop3._tcp", 0, 0, 0, "."),
SRV("_pop3s._tcp", 10, 1, 995, "pop.fastmail.com."),
SRV("_submission._tcp", 0, 0, 587, "smtp.fastmail.com."),
TXT("@", "v=spf1 include:spf.messagingengine.com ?all"), TXT("@", "v=spf1 include:spf.messagingengine.com ?all"),
TXT("_dmarc", "v=DMARC1; p=none;"), TXT("_dmarc", "v=DMARC1; p=none;"),
END); END);
}
SETUP_FASTMAIL("adtya.xyz")
SETUP_FASTMAIL("acomputer.lol")
SETUP_FASTMAIL("ironyofprivacy.org")