Summary Files Commits Branches @commit @diff @stats
path: root / modules / server / dnsmasq.nix
diff options
context:
space:
mode:
1 files changed, 19 insertions, 0 deletions
-rw-r--r--modules/server/dnsmasq.nix19
diff --git a/modules/server/dnsmasq.nix b/modules/server/dnsmasq.nix
new file mode 100644
index 0000000..4461e4f
--- /dev/null
+++ b/modules/server/dnsmasq.nix
@@ -0,0 +1,19 @@
+{
+ networking.firewall = {
+ allowedTCPPorts = [ 53 ];
+ allowedUDPPorts = [ 53 ];
+ };
+ services.dnsmasq = {
+ enable = true;
+ alwaysKeepRunning = true;
+ settings = {
+ addn-hosts = "/etc/hosts";
+ server = [
+ "1.1.1.1"
+ "1.0.0.1"
+ "8.8.8.8"
+ "8.8.4.4"
+ ];
+ };
+ };
+}