mailserver: Set up DNS recursor

nazuna
Simon Bruder 2023-04-27 22:00:11 +02:00
parent 2f39d10a8a
commit cec6a8de65
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
1 changed files with 15 additions and 0 deletions

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'
'';
};
}