From 677268a3e328beede6067ff2caf3d443eddf8186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sun, 21 Apr 2024 00:05:06 +0200 Subject: [PATCH] dns: set ORIGIN (WIP) --- nix/nixos-module/container/dns.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nix/nixos-module/container/dns.nix b/nix/nixos-module/container/dns.nix index 71684f8..580f705 100644 --- a/nix/nixos-module/container/dns.nix +++ b/nix/nixos-module/container/dns.nix @@ -6,6 +6,7 @@ let generateZoneFile = let util = dns-nix.util.${pkgs.system}; in { name, ns, records, ... }: util.writeZone name (with dns-nix.lib.combinators; { + ORIGIN = "${name}."; TTL = 60*60; SOA = { nameServer = "${lib.dns.ns}.";