From 38c9b551ac0ffa6dfdd9dfe4f77242b926a339aa Mon Sep 17 00:00:00 2001 From: tdback Date: Mon, 27 Jan 2025 22:03:00 -0500 Subject: dns: add options for verbosity level and enabling ipv6 queries --- hosts/heimdall/modules/default.nix | 1 + modules/services/dns/default.nix | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/hosts/heimdall/modules/default.nix b/hosts/heimdall/modules/default.nix index 814d1ff..6a8a64d 100644 --- a/hosts/heimdall/modules/default.nix +++ b/hosts/heimdall/modules/default.nix @@ -3,6 +3,7 @@ services.dns = { enable = true; subnet = "10.44.0.0/16"; + verbosity = 2; }; services.searx.enable = true; scripts.motd = { diff --git a/modules/services/dns/default.nix b/modules/services/dns/default.nix index e25645e..7506ab2 100644 --- a/modules/services/dns/default.nix +++ b/modules/services/dns/default.nix @@ -19,6 +19,14 @@ in default = "192.168.0.0/24"; type = types.str; }; + verbosity = mkOption { + default = 1; + type = types.int; + }; + ipv6 = mkOption { + default= false; + type = types.bool; + }; }; config = mkIf cfg.enable { @@ -32,6 +40,8 @@ in enableRootTrustAnchor = true; resolveLocalQueries = true; settings.server = { + verbosity = cfg.verbosity; + do-ip6 = cfg.ipv6; interface = [ "0.0.0.0" ]; port = cfg.port; access-control = [ "${cfg.subnet} allow" ]; -- cgit v1.2.3