summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2020-09-10 15:00:09 +0200
committerAlan Pearce2020-09-10 15:00:09 +0200
commit56a7dc354602d54324a9cda7ce9121d53beaa05e (patch)
treed4ddcd5ea893e3700512931fcff603c6d14f9176
parent57250f8deeffb892cb45a0850f0ab6ee07ccaee4 (diff)
downloadnixfiles-56a7dc354602d54324a9cda7ce9121d53beaa05e.tar.lz
nixfiles-56a7dc354602d54324a9cda7ce9121d53beaa05e.tar.zst
nixfiles-56a7dc354602d54324a9cda7ce9121d53beaa05e.zip
nextdns: support /etc/hosts
-rw-r--r--system/modules/nextdns.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/system/modules/nextdns.nix b/system/modules/nextdns.nix
index 021c65d3..ae7f6852 100644
--- a/system/modules/nextdns.nix
+++ b/system/modules/nextdns.nix
@@ -12,6 +12,8 @@ let
   kresdConfig = {
     enable = true;
     extraConfig = ''
+      modules = { 'hints > iterate' }
+      hints.add_hosts()
       policy.add(policy.all(policy.TLS_FORWARD({
         {'45.90.28.0', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},
         {'2a07:a8c0::', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},