aboutsummaryrefslogtreecommitdiff
path: root/modules/services/dns/default.nix
diff options
context:
space:
mode:
authortdback <tyler@tdback.net>2025-01-27 22:03:00 -0500
committertdback <tyler@tdback.net>2025-01-27 22:03:00 -0500
commit38c9b551ac0ffa6dfdd9dfe4f77242b926a339aa (patch)
tree2e584960ac3354cbe9c93236c0396accb1c59291 /modules/services/dns/default.nix
parente12c880352775428bdaf890193cbbf6720a927f9 (diff)
dns: add options for verbosity level and enabling ipv6 queries
Diffstat (limited to 'modules/services/dns/default.nix')
-rw-r--r--modules/services/dns/default.nix10
1 files changed, 10 insertions, 0 deletions
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" ];