summaryrefslogtreecommitdiff
path: root/services/dnsmasq.nix
blob: 50746172016a93e300d9fda94d71a9b064bcad1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, ... }:
{
  # Local DNS server
  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
    '';
  };
}