aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 14:04:35 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-10-28 14:04:35 +0100
commit7704235e1189c36f4df904710a1e64dc961540a0 (patch)
tree43d9b9dcf9527f18750b15a7248b55e3def83f09
parentscripts/update_hosts.sh: Make upstream independent (diff)
downloadnixos-server-7704235e1189c36f4df904710a1e64dc961540a0.zip
zones/b-peetz.de: Init
Diffstat (limited to '')
-rw-r--r--zones/b-peetz.de/zone.nix99
-rw-r--r--zones/default.nix3
2 files changed, 101 insertions, 1 deletions
diff --git a/zones/b-peetz.de/zone.nix b/zones/b-peetz.de/zone.nix
new file mode 100644
index 0000000..87ceaf8
--- /dev/null
+++ b/zones/b-peetz.de/zone.nix
@@ -0,0 +1,99 @@
+{mkSerial, ...}: {
+ SOA = {
+ nameServer = "name-server1.vhack.eu.";
+ adminEmail = "dns-admin@foss-syndicate.org";
+ # NOTE(@bpeetz): ALWAYS change the serial number, when you change something in the
+ # zone file! <2025-04-01>
+ serial = mkSerial 2026 10 28 01;
+ };
+ useOrigin = false;
+
+ CNAME = [ "server3.vhack.eu." ];
+
+ NS = [
+ "name-server1.vhack.eu."
+ "name-server2.vhack.eu."
+ ];
+
+ CAA = [
+ {
+ issuerCritical = false;
+ tag = "issue";
+ value = "letsencrypt.org";
+ }
+ ];
+
+ # Mail section {{{
+ MX = [
+ {
+ preference = 10;
+ exchange = "mail.foss-syndicate.org.";
+ }
+ ];
+
+ # https://www.rfc-editor.org/rfc/rfc7208.html
+ TXT = [
+ (builtins.concatStringsSep " " [
+ "v=spf1" # The version.
+ "+mx" # Allow mail from this domain MX record.
+ "-all" # Reject all other emails if the previous mechanism did not match.
+ ])
+ ];
+
+ # https://www.rfc-editor.org/rfc/rfc6376.html#section-3.6.1
+ # https://www.rfc-editor.org/rfc/rfc6376.html#section-7.5
+ DKIM = [
+ {
+ selector = "mail";
+ k = "ed25519";
+ p = "U0eOxgLD3yK7PKzQRSZdJ3EH/UwVxPeYmfm42gYXsDg=";
+ s = ["email"];
+ t = ["s"];
+ }
+ ];
+
+ # https://www.rfc-editor.org/rfc/rfc7489.html#section-6.3
+ DMARC = [
+ {
+ adkim = "strict";
+ aspf = "strict";
+ fo = [
+ "0"
+ "1"
+ "d"
+ "s"
+ ];
+ p = "reject";
+ rua = "admin@foss-syndicate.org";
+ ruf = ["admin@foss-syndicate.org"];
+ }
+ ];
+
+ # https://www.rfc-editor.org/rfc/rfc2782.txt
+ SRV = [
+ {
+ service = "imaps";
+ proto = "tcp";
+ priority = 0;
+ weight = 1;
+ port = 993;
+ target = "mail.foss-syndicate.org.";
+ }
+ {
+ service = "pop3s";
+ proto = "tcp";
+ priority = 0;
+ weight = 1;
+ port = 995;
+ target = "mail.foss-snydicate.org.";
+ }
+ {
+ service = "smtps";
+ proto = "tcp";
+ priority = 0;
+ weight = 1;
+ port = 465;
+ target = "mail.foss-syndicate.org.";
+ }
+ ];
+}
diff --git a/zones/default.nix b/zones/default.nix
index dc3eb9f..5b91623 100644
--- a/zones/default.nix
+++ b/zones/default.nix
@@ -33,8 +33,9 @@
in
lib.strings.toIntBase10 "${n4 year}${n2 month}${n2 day}${n2 iteration}";
in {
- "vhack.eu" = import ./vhack.eu/zone.nix {inherit mkSerial;};
+ "b-peetz.de" = import ./b-peetz.de/zone.nix {inherit mkSerial;};
"j-schoeffel.de" = import ./j-schoeffel.de/zone.nix {inherit mkSerial;};
"jaki-schoeffel.de" = import ./jaki-schoeffel.de/zone.nix {inherit mkSerial;};
"jaki.li" = import ./jaki.li/zone.nix {inherit mkSerial;};
+ "vhack.eu" = import ./vhack.eu/zone.nix {inherit mkSerial;};
}