nixos-config/modules/mailserver/dns.nix

19 lines
411 B
Nix
Raw Normal View History

{ config, lib, ... }:
lib.mkIf config.sbruder.mailserver.enable {
# Enable recursor for DNSBLs etc.
services.resolved.enable = false;
services.unbound = {
enable = true;
settings = {
server = {
interface = [ "127.0.0.53" ];
};
};
resolveLocalQueries = false; # does not work with .53
};
networking.resolvconf.extraConfig = ''
name_servers='127.0.0.53'
'';
}