summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorKenny Ballou <kballou@devnulllabs.io>2019-06-07 10:52:12 -0600
committerKenny Ballou <kballou@devnulllabs.io>2019-06-07 10:52:12 -0600
commit5f0ecc93e146906bcb7a71681eb39268c99e57f6 (patch)
tree45efd5a2b588a3781727296de3a6d35a2e471e9c /services
parentfc01f8d384322da2e3d4f7e1451de2295a253d59 (diff)
downloadcfg.nix-5f0ecc93e146906bcb7a71681eb39268c99e57f6.tar.gz
cfg.nix-5f0ecc93e146906bcb7a71681eb39268c99e57f6.tar.xz
services: update dnsmasq configuration
There was some misunderstandings of the various settings here. Furthermore, add some of the extra/custom configuration that was not yet codified. Signed-off-by: Kenny Ballou <kballou@devnulllabs.io>
Diffstat (limited to 'services')
-rw-r--r--services/dnsmasq.nix20
1 files changed, 18 insertions, 2 deletions
diff --git a/services/dnsmasq.nix b/services/dnsmasq.nix
index 7a33d82..5074617 100644
--- a/services/dnsmasq.nix
+++ b/services/dnsmasq.nix
@@ -1,6 +1,22 @@
{ config, ... }:
{
# Local DNS server
- services.dnsmasq.enable = true;
- services.dnsmasq.servers = [ "127.0.0.1#53" ];
+ services.dnsmasq = {
+ enable = true;
+ servers = [
+ "209.244.0.3"
+ "209.244.0.4"
+ "208.67.222.222"
+ "208.67.220.220"
+ "1.1.1.1"
+ "9.9.9.9"
+ "8.8.8.8"
+ "8.8.4.4"
+ ];
+ extraConfig = ''
+ address=/service.consul/127.0.0.1
+ listen-address=127.0.0.1,172.17.0.1
+ host-record=postgres,127.0.0.1
+ '';
+ };
}