infrastructure/dnsconfig.js
2024-10-02 01:04:00 +02:00

116 lines
4.2 KiB
JavaScript

// @ts-check
/// <reference path="types-dnscontrol.d.ts" />
require('dns/default_records.js');
require('dns/functions.js');
var dkim = require('dns/dkim.json');
var hosts = require('dns/hosts.json');
var services_json = require('dns/services.json');
var REG_OVH = NewRegistrar("ovh");
var DSP_OVH = NewDnsProvider("ovh");
var services = {};
for (var key in services_json) {
var s = services_json[key];
services[key] = service(s.target, s.domain, s.host, s.alias);
}
// _ __ ___ _____ ____ _ ___ ___
// | '_ ` _ \/ __\ \ / / _` | / __/ __|
// | | | | | \__ \\ V / (_| || (_| (__
// |_| |_| |_|___/ \_/ \__, (_)___\___|
// |___/
D("msvg.cc", REG_OVH, DnsProvider(DSP_OVH),
all_defaults("msvg.cc", true)
);
// _ __ ___ ___ _ __ __ _ ___ ___
// | '_ ` _ \/ __| '__/ _` | / __/ __|
// | | | | | \__ \ | | (_| || (_| (__
// |_| |_| |_|___/_| \__, (_)___\___|
// |___/
D("msrg.cc", REG_OVH, DnsProvider(DSP_OVH),
all_defaults("msrg.cc", true),
acme_challenge(null, "11974523-79f9-4bd2-a776-33c26ded361f"),
// Matrix
SRV("_matrix._tcp", 1, 1, 8448, "matrix.msrg.cc."),
// XMPP
SRV("_xmpp-server._tcp", 0, 1, 5269, "wiuwiu.de."),
SRV("_xmpp-client._tcp", 0, 1, 5222, "wiuwiu.de."),
SRV("_xmpps-client._tcp", 0, 10, 5223, "xmpps.wiuwiu.de."),
SRV("_xmpps-client._tcp", 0, 20, 443, "xmpps.wiuwiu.de."),
TXT("xmppconnect", "_xmpp-client-xbosh=https://wiuwiu.de:443/http-bind/"),
verify_amazon_ses([
"rg6sgmw6fr73pucbqz62h25wq2q75iet",
"rjczvv7ab3twf6kfjjzmz5fkhpmyc2j5",
"bxau47qbno4igiwug2xrmwozzk6vwdyv"
]),
// SendGrid DKIM
CNAME("em2339.holitime", "u26197282.wl033.sendgrid.net."),
CNAME("s1._domainkey.holitime", "s1.domainkey.u26197282.wl033.sendgrid.net."),
CNAME("s2._domainkey.holitime", "s2.domainkey.u26197282.wl033.sendgrid.net.")
);
// _
// ___ ___ _ __ __ _ _ _ ___(_)_ __ ___ _ __ ___ ___
// / __|/ _ \ '__/ _` | | | |_ / | '_ ` _ \ | '_ ` _ \ / _ \
// \__ \ __/ | | (_| | |_| |/ /| | | | | | |_| | | | | | __/
// |___/\___|_| \__, |\__,_/___|_|_| |_| |_(_)_| |_| |_|\___|
// |___/
D("serguzim.me", REG_OVH, DnsProvider(DSP_OVH),
all_defaults("serguzim.me", true),
TLSA("_25._tcp.mail", 3, 1, 1, "e66a608a3ec459bda7fb1f2d500b8abeb78f2910f26641204b6bc454b8aa2a49"),
acme_challenge("db", "ca2c86c0-ff3d-458a-89e0-11bcfd2543e4"),
acme_challenge("auth", "18a42983-3d19-4c17-8213-fc275a8be721"),
verify_amazon_ses([
"dd4g333vxgahaf3rh3dafdx6g7kq7t7z",
"tbqt7mluvomvsomaj7nuhvs2xl7hd6hg",
"tl2n3zn4jxjodumvqj4jqdavfxznivvd"
]),
verify_dmarc_reports([
"msrg.cc",
"reitanlage-oranienburg.de"
]),
NS("acme", services["acme_dns"].resolve_host().fqdn + "."),
CNAME("db", "node002.vpn.serguzim.net."),
// Other records
A("loetlabor", "141.23.124.187"),
A("ls", "62.141.37.39"),
A("test", "62.141.37.39"),
CNAME("cloud", "nx45221.your-storageshare.de.")
);
// _ _ _ _ _ _
// _ __ ___(_) |_ __ _ _ __ | | __ _ __ _ ___ ___ _ __ __ _ _ __ (_) ___ _ __ | |__ _ _ _ __ __ _ __| | ___
// | '__/ _ \ | __/ _` | '_ \| |/ _` |/ _` |/ _ \_____ / _ \| '__/ _` | '_ \| |/ _ \ '_ \| '_ \| | | | '__/ _` | / _` |/ _ \
// | | | __/ | || (_| | | | | | (_| | (_| | __/_____| (_) | | | (_| | | | | | __/ | | | |_) | |_| | | | (_| || (_| | __/
// |_| \___|_|\__\__,_|_| |_|_|\__,_|\__, |\___| \___/|_| \__,_|_| |_|_|\___|_| |_|_.__/ \__,_|_| \__, (_)__,_|\___|
// |___/ |___/
D("reitanlage-oranienburg.de", REG_OVH, DnsProvider(DSP_OVH),
all_defaults("reitanlage-oranienburg.de", false),
verify_amazon_ses([
"kseozkz37py4ukzg2h2kx7bua5r4yv2v",
"py2qx6nrsfn7r5j4uwwfpc7tgi63u7sn",
"hzmi7t2qcycinuy5edmo5uphohgtkefa"
]),
TXT("default._bimi", "v=BIMI1; l=https://www.reitanlage-oranienburg.de/user/themes/reitanlage-oranienburg/images/bimi.svg")
);