Skip to content

Commit

Permalink
chore: don't use local resolvers
Browse files Browse the repository at this point in the history
  • Loading branch information
orzklv committed Nov 3, 2024
1 parent e6c07ab commit ea20ee0
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions modules/nixos/bind.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,10 @@ let
enable = config.services.nameserver.enable;
directory = "/var/bind";
zones = zonesMap config.services.nameserver.zones config.services.nameserver.type;

extraOptions = ''
recursion yes;
allow-recursion { any; };
allow-query { any; };
'';

forwarders = [ "8.8.8.8" "8.8.4.4" ];
};

networking.resolvconf.useLocalResolver = false;

# DNS standard port for connections + that require more than 512 bytes
networking.firewall.allowedUDPPorts = [ 53 ];
networking.firewall.allowedTCPPorts = [ 53 ];
Expand Down

0 comments on commit ea20ee0

Please sign in to comment.