From 392dbcbbb733bbfff196183bb0145d2473bb902d Mon Sep 17 00:00:00 2001 From: Felix Albrigtsen Date: Wed, 21 Jan 2026 22:22:27 +0100 Subject: [PATCH] Clean up a bit of documentation --- README.md | 10 +++++++--- zoneConfig.nix | 2 -- zones/reverse-ipv4.nix | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 5978265..22deb9c 100644 --- a/README.md +++ b/README.md @@ -56,8 +56,12 @@ roundrobin.pvv.ntnu.no. IN AAAA 2001:700:300:1900::202 ## Future plans -- Also generate DHCP server configurations +- Automate serial generation - Build and verify with CI/CD - Automatically push updated configurations to the DNS server -- Replace dns.nix with homemade zonefile generators to make them more human readable -- Host-customizable TTL (e.g. for moving a CNAME around when replacing a service/server) + - Also generate DNS server configuration files + - [NSD](https://nlnetlabs.nl/projects/nsd/about/), included in OpenBSD + - [Bind9](https://www.isc.org/bind/), common alternative +- Per-record or per-host customizable TTL (e.g. for moving a CNAME around when replacing a service/server) +- Improve dns.nix or replace it with a homemade zonefile generator to make the output more human readable +- Also generate DHCP server configurations diff --git a/zoneConfig.nix b/zoneConfig.nix index 42cd277..65810f8 100644 --- a/zoneConfig.nix +++ b/zoneConfig.nix @@ -27,6 +27,4 @@ stdenvNoCC.mkDerivation { '' + (lib.concatMapAttrsStringSep "\n" (name: path: "cp ${path} $out/zones/${name}.zone") zoneConfigs); - - # TODO: Write named.conf to include the zones, set allow-transfer, etc. } diff --git a/zones/reverse-ipv4.nix b/zones/reverse-ipv4.nix index b6d0a0a..2e19910 100644 --- a/zones/reverse-ipv4.nix +++ b/zones/reverse-ipv4.nix @@ -6,7 +6,8 @@ let domainSuffix = ".pvv.ntnu.no."; pvvHostRecords = import ../pvv-host-forwards.nix { inherit dns lib; }; - # Find all the A-records pointing into the PVV-network, and generate the opposing PTR records + + # Find all the A-records pointing into the PVV subnet, and generate the opposing PTR records # TODO: Handle duplicates? Avoid NVG-IPs? pvvHostReverseRecords = builtins.listToAttrs ( lib.concatLists (