2024-11-08 11:28:26 +05:30
|
|
|
var DOMAIN_REGISTRAR = NewRegistrar("dynadot");
|
2024-11-08 10:11:43 +05:30
|
|
|
|
2024-11-19 10:11:50 +05:30
|
|
|
var DNS_PROVIDER_HETZNER = NewDnsProvider("hetzner");
|
|
|
|
var DNS_PROVIDER_DIGITALOCEAN = NewDnsProvider("digitalocean");
|
2024-11-16 21:29:50 +05:30
|
|
|
|
2024-11-19 10:11:50 +05:30
|
|
|
var DNS_PROVIDER_ONE = DnsProvider(DNS_PROVIDER_HETZNER);
|
|
|
|
var DNS_PROVIDER_TWO = DnsProvider(DNS_PROVIDER_DIGITALOCEAN, 0);
|
2024-11-19 10:12:14 +05:30
|
|
|
|
|
|
|
var BIFROST_IP = "128.199.30.141";
|
|
|
|
|
2024-11-19 10:11:50 +05:30
|
|
|
D("adtya.xyz", DOMAIN_REGISTRAR, DNS_PROVIDER_ONE, DNS_PROVIDER_TWO,
|
2024-11-08 20:42:32 +05:30
|
|
|
NAMESERVER_TTL("1d"),
|
2024-11-08 10:41:16 +05:30
|
|
|
DefaultTTL("900s"),
|
2024-11-19 10:12:14 +05:30
|
|
|
A("@", BIFROST_IP),
|
|
|
|
A("www", BIFROST_IP),
|
|
|
|
A("proofs", BIFROST_IP),
|
|
|
|
A("wiki", BIFROST_IP),
|
2024-11-08 10:12:48 +05:30
|
|
|
CNAME("if3", "if3.fly.dev."),
|
|
|
|
TXT("_github-pages-challenge-adtya", "c83b7cfc33c02c0499d401da51b801"),
|
|
|
|
END);
|
2024-11-08 10:11:43 +05:30
|
|
|
|
2024-11-19 10:11:50 +05:30
|
|
|
D("acomputer.lol", DOMAIN_REGISTRAR, DNS_PROVIDER_ONE, DNS_PROVIDER_TWO,
|
2024-11-08 20:42:32 +05:30
|
|
|
NAMESERVER_TTL("1d"),
|
2024-11-08 10:41:16 +05:30
|
|
|
DefaultTTL("900s"),
|
2024-11-19 10:12:14 +05:30
|
|
|
A("@", BIFROST_IP),
|
|
|
|
A("www", BIFROST_IP),
|
|
|
|
A("forge", BIFROST_IP),
|
|
|
|
A("matrix", BIFROST_IP),
|
|
|
|
A("ntfy", BIFROST_IP),
|
2024-11-08 10:41:16 +05:30
|
|
|
END);
|
|
|
|
|
2024-11-19 10:11:50 +05:30
|
|
|
D("ironyofprivacy.org", DOMAIN_REGISTRAR, DNS_PROVIDER_ONE, DNS_PROVIDER_TWO,
|
2024-11-08 20:42:32 +05:30
|
|
|
NAMESERVER_TTL("1d"),
|
2024-11-08 10:41:16 +05:30
|
|
|
DefaultTTL("900s"),
|
|
|
|
END);
|
|
|
|
|
|
|
|
function SETUP_FASTMAIL(domain) {
|
2024-11-08 20:35:34 +05:30
|
|
|
D_EXTEND(domain,
|
|
|
|
DefaultTTL("1d"),
|
|
|
|
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("_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."),
|
|
|
|
TXT("@", "v=spf1 include:spf.messagingengine.com ?all"),
|
|
|
|
TXT("_dmarc", "v=DMARC1; p=none;"),
|
|
|
|
END);
|
2024-11-08 10:41:16 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
SETUP_FASTMAIL("adtya.xyz")
|
|
|
|
SETUP_FASTMAIL("acomputer.lol")
|
|
|
|
SETUP_FASTMAIL("ironyofprivacy.org")
|