mailserver: Set up DNS recursor

This commit is contained in:
Simon Bruder 2023-04-27 22:00:11 +02:00
parent 2f39d10a8a
commit cec6a8de65
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -342,5 +342,20 @@ in
lda_mailbox_autocreate = yes
'';
};
# DNS (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'
'';
};
}