2022-03-06 17:25:54 +00:00
|
|
|
{
|
2022-06-12 15:39:15 +00:00
|
|
|
dns,
|
|
|
|
zoneTTL ? 3600,
|
|
|
|
}:
|
|
|
|
with dns.lib.combinators; let
|
|
|
|
inherit (builtins) hasAttr;
|
|
|
|
merge = a: b:
|
|
|
|
(a // b)
|
|
|
|
// (
|
|
|
|
if ((hasAttr "subdomains" a) && (hasAttr "subdomains" b))
|
|
|
|
then {subdomains = a.subdomains // b.subdomains;}
|
|
|
|
else {}
|
|
|
|
);
|
|
|
|
in {
|
2022-03-06 17:25:54 +00:00
|
|
|
SOA = {
|
2022-03-23 08:39:08 +00:00
|
|
|
nameServer = "ns1.chir.rs.";
|
2022-03-06 17:25:54 +00:00
|
|
|
adminEmail = "lotte@chir.rs";
|
2024-06-26 05:13:34 +00:00
|
|
|
serial = 36;
|
2022-03-06 17:25:54 +00:00
|
|
|
};
|
|
|
|
NS = [
|
2022-03-23 08:39:08 +00:00
|
|
|
"ns1.chir.rs."
|
|
|
|
"ns2.chir.rs."
|
2022-12-14 17:02:17 +00:00
|
|
|
"ns3.chir.rs."
|
|
|
|
"ns4.chir.rs."
|
|
|
|
"ns1.darkkirb.de."
|
|
|
|
"ns2.darkkirb.de."
|
2022-03-06 17:25:54 +00:00
|
|
|
];
|
|
|
|
DNSKEY = [
|
|
|
|
{
|
|
|
|
flags.zoneSigningKey = true;
|
|
|
|
flags.secureEntryPoint = true;
|
|
|
|
algorithm = "ecdsap256sha256";
|
|
|
|
publicKey = "wB3TYl1UNG1f2p04/ExhCOib2iJD3mNo3F9vrwIBIP0kA94Z5xUVFQUMbSYrUIjA7/oNs/Degpo2RWFwnzFf2A==";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
flags.zoneSigningKey = true;
|
|
|
|
algorithm = "ecdsap256sha256";
|
|
|
|
publicKey = "KdE0BQY5RqcHSYo9pgpjVAR1FAtaaF9elTzRhSE1dNKtVaMMhF5JA5s/tYVk1eY7JtiYVAOQkJsUduGTBOosDg==";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
subdomains = {
|
|
|
|
gateway = {
|
|
|
|
A = [
|
|
|
|
(ttl zoneTTL (a "10.0.0.1"))
|
|
|
|
];
|
|
|
|
AAAA = [
|
|
|
|
(ttl zoneTTL (aaaa "fd00:e621:e621::1"))
|
|
|
|
];
|
|
|
|
};
|
|
|
|
nixos-8gb-fsn1-1 = {
|
2023-02-02 18:34:00 +00:00
|
|
|
A = [
|
|
|
|
(ttl zoneTTL (a "100.119.226.33"))
|
|
|
|
];
|
2022-03-06 17:25:54 +00:00
|
|
|
AAAA = [
|
2023-02-02 18:34:00 +00:00
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0:ab12:4843:cd96:6277:e221"))
|
2022-03-06 17:25:54 +00:00
|
|
|
];
|
|
|
|
SSHFP = [
|
|
|
|
{
|
|
|
|
algorithm = "rsa";
|
|
|
|
mode = "sha1";
|
|
|
|
fingerprint = "97b910c37194cd98e7edca2d68104f4531721c22";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "rsa";
|
|
|
|
mode = "sha256";
|
|
|
|
fingerprint = "7915470f9275116889d5ca1fdbea20416d8372636c3d63653b272308608cf70f";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "ed25519";
|
|
|
|
mode = "sha1";
|
|
|
|
fingerprint = "1aff467e745a8d68ba032dd3d54597e10d31ccf8";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "ed25519";
|
|
|
|
mode = "sha256";
|
|
|
|
fingerprint = "e6dcdb73dc381ee2b354528cdaf8552364e75c34316d7e0c9819801daea5c951";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
2022-06-12 15:39:15 +00:00
|
|
|
/*
|
2023-09-08 11:41:22 +00:00
|
|
|
subdomains = {
|
|
|
|
_tcp.subdomains."*".TLSA = [
|
|
|
|
{
|
|
|
|
certUsage = "dane-ee";
|
|
|
|
selector = "spki";
|
|
|
|
match = "sha256";
|
|
|
|
certificate = "0b85bd8fd152ed8b29a25e7fd69c083138a7bd35d79aea62c111efcf17ede23f";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
_udp.subdomains."*".TLSA = [
|
|
|
|
{
|
|
|
|
certUsage = "dane-ee";
|
|
|
|
selector = "spki";
|
|
|
|
match = "sha256";
|
|
|
|
certificate = "0b85bd8fd152ed8b29a25e7fd69c083138a7bd35d79aea62c111efcf17ede23f";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
*/
|
2022-03-06 17:25:54 +00:00
|
|
|
HTTPS = [
|
|
|
|
{
|
|
|
|
svcPriority = 1;
|
|
|
|
targetName = ".";
|
2022-06-12 15:39:15 +00:00
|
|
|
alpn = ["http/1.1" "h2" "h3"];
|
2023-02-02 18:34:00 +00:00
|
|
|
ipv4hint = ["100.119.226.33"];
|
|
|
|
ipv6hint = ["fd7a:115c:a1e0:ab12:4843:cd96:6277:e221"];
|
2022-03-12 09:37:16 +00:00
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
CAA = [
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "issue";
|
|
|
|
value = "letsencrypt.org";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "issuewild";
|
|
|
|
value = "letsencrypt.org";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "iodef";
|
|
|
|
value = "mailto:lotte@chir.rs";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-02-02 18:34:00 +00:00
|
|
|
thinkrac = {
|
2023-11-29 16:32:01 +00:00
|
|
|
A = [(ttl zoneTTL (a "100.95.136.81"))];
|
2023-02-02 18:34:00 +00:00
|
|
|
AAAA = [
|
2023-11-29 16:32:01 +00:00
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0::63df:8851"))
|
2023-02-02 18:34:00 +00:00
|
|
|
];
|
|
|
|
};
|
2022-04-24 20:20:17 +00:00
|
|
|
nas = {
|
2023-02-02 18:34:00 +00:00
|
|
|
A = [(ttl zoneTTL (a "100.99.129.7"))];
|
2022-04-24 20:20:17 +00:00
|
|
|
AAAA = [
|
2023-02-02 18:34:00 +00:00
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0:ab12:4843:cd96:6263:8107"))
|
2022-04-24 20:20:17 +00:00
|
|
|
];
|
|
|
|
SSHFP = [
|
|
|
|
{
|
|
|
|
algorithm = "rsa";
|
|
|
|
mode = "sha1";
|
|
|
|
fingerprint = "13e1173d96b822c98a7b3cd47be2e830f7758671";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "rsa";
|
|
|
|
mode = "sha256";
|
|
|
|
fingerprint = "2e87a3fd00918e4f1e47d3b14b59e846ee016a0d3269cb2524c8d28b121e130e";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "ed25519";
|
|
|
|
mode = "sha1";
|
|
|
|
fingerprint = "d1df2d244980a5e4dde37eed678b59a2239ca2ac";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
algorithm = "ed25519";
|
|
|
|
mode = "sha256";
|
|
|
|
fingerprint = "33d6c993ee3789fb6a2e60c243da7095eb79ce8e522b087f8a31ea400d7b034e";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
# TODO: add TLSA
|
|
|
|
HTTPS = [
|
|
|
|
{
|
|
|
|
svcPriority = 1;
|
|
|
|
targetName = ".";
|
2022-06-12 15:39:15 +00:00
|
|
|
alpn = ["http/1.1" "h2" "h3"];
|
2023-02-02 18:34:00 +00:00
|
|
|
ipv4hint = ["100.99.129.7"];
|
|
|
|
ipv6hint = ["fd7a:115c:a1e0:ab12:4843:cd96:6263:8107"];
|
2022-04-24 20:20:17 +00:00
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
CAA = [
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "issue";
|
|
|
|
value = "letsencrypt.org";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "issuewild";
|
|
|
|
value = "letsencrypt.org";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
{
|
|
|
|
issuerCritical = false;
|
|
|
|
tag = "iodef";
|
|
|
|
value = "mailto:lotte@chir.rs";
|
|
|
|
ttl = zoneTTL;
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
2023-02-02 18:34:00 +00:00
|
|
|
instance-20221213-1915 = {
|
|
|
|
A = [(ttl zoneTTL (a "100.99.173.107"))];
|
|
|
|
AAAA = [
|
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0:ab12:4843:cd96:6263:ad6b"))
|
|
|
|
];
|
|
|
|
};
|
2023-06-16 05:14:15 +00:00
|
|
|
vf2 = {
|
|
|
|
A = [(ttl zoneTTL (a "100.90.87.132"))];
|
|
|
|
AAAA = [
|
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0:ab12:4843:cd96:625a:5784"))
|
|
|
|
];
|
|
|
|
};
|
2023-12-06 16:25:47 +00:00
|
|
|
rainbow-resort = {
|
2024-05-01 13:54:29 +00:00
|
|
|
A = [(ttl zoneTTL (a "100.115.217.35"))];
|
2023-12-06 16:25:47 +00:00
|
|
|
AAAA = [
|
2024-05-01 13:54:29 +00:00
|
|
|
(ttl zoneTTL (aaaa "fd7a:115c:a1e0::4601:d923"))
|
2023-12-06 16:25:47 +00:00
|
|
|
];
|
|
|
|
};
|
2022-03-06 17:25:54 +00:00
|
|
|
|
2022-06-12 15:39:15 +00:00
|
|
|
grafana.CNAME = [(ttl zoneTTL (cname "nixos-8gb-fsn1-1"))];
|
|
|
|
minio.CNAME = [(ttl zoneTTL (cname "nixos-8gb-fsn1-1"))];
|
|
|
|
minio-console.CNAME = [(ttl zoneTTL (cname "nixos-8gb-fsn1-1"))];
|
|
|
|
backup.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
hydra.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
mastodon.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2024-05-03 04:13:03 +00:00
|
|
|
matrix.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2022-12-07 10:11:00 +00:00
|
|
|
rspamd.CNAME = [(ttl zoneTTL (cname "nixos-8gb-fsn1-1"))];
|
2022-11-02 15:53:13 +00:00
|
|
|
moa.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2024-05-03 04:13:03 +00:00
|
|
|
matrix-admin.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
mautrix-discord.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
mautrix-signal.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
mautrix-telegram.CNAME = [(ttl zoneTTL (cname "nas"))];
|
|
|
|
mautrix-whatsapp.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2024-03-23 08:34:24 +00:00
|
|
|
weblate.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2024-04-08 20:05:37 +00:00
|
|
|
jellyfin.CNAME = [(ttl zoneTTL (cname "nas"))];
|
2022-03-12 10:03:18 +00:00
|
|
|
_acme-challenge = delegateTo [
|
2022-03-23 08:39:08 +00:00
|
|
|
"ns1.chir.rs."
|
|
|
|
"ns2.chir.rs."
|
2022-03-12 10:03:18 +00:00
|
|
|
];
|
2022-03-06 17:25:54 +00:00
|
|
|
};
|
|
|
|
}
|