summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/services/dnsmasq.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/services/dnsmasq.nix b/modules/services/dnsmasq.nix
index 9a8cf11..99486f1 100644
--- a/modules/services/dnsmasq.nix
+++ b/modules/services/dnsmasq.nix
@@ -63,7 +63,10 @@ in
name = "resolver/${domain}";
value = {
enable = true;
- text = "nameserver ${cfg.bind}.${toString cfg.port}";
+ text = ''
+ port ${toString cfg.port}
+ nameserver ${cfg.bind}
+ '';
};
}) (builtins.attrNames cfg.addresses));
};