unbound: fix

This commit is contained in:
Rouven Seifert 2025-05-09 23:17:38 +02:00
parent 36b8f77764
commit 4cc5a1fb57
2 changed files with 7 additions and 12 deletions

View file

@ -15,7 +15,7 @@
firewall = {
logRefusedConnections = false;
trustedInterfaces = [ "podman0"];
trustedInterfaces = [ "podman0" ];
};
};
@ -47,10 +47,8 @@
];
networkConfig = {
DNS = [
"9.9.9.9"
"149.112.112.112"
"2620:fe::fe"
"2620:fe::9"
"127.0.0.1"
"::1"
];
LLDP = true;
EmitLLDP = "nearest-bridge";

View file

@ -1,17 +1,14 @@
{ ... }:
{
services.resolved.extraConfig = ''
DNSStubListener=no
'';
services.unbound = {
enable = true;
settings = {
server = {
interface = [ "127.0.0.1" ];
access-control = [ "127.0.0.1 allow" ];
interface = [ "127.0.0.1" "::1" ];
};
stub-zone = [
{
name = ".";
}
];
};
};
}