mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 21:19:07 +01:00
dns: Disable forwarding and resolve all requests yourself
This commit is contained in:
parent
56c7b22bf1
commit
3df7d8f5f0
1 changed files with 21 additions and 33 deletions
|
|
@ -16,12 +16,9 @@ in
|
|||
unbound = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
server = {
|
||||
settings.server = {
|
||||
interface = [ netCfg.overlay.interface ];
|
||||
access-control = [
|
||||
"${toString netCfg.overlay.networkCidr} allow"
|
||||
];
|
||||
access-control = [ "${toString netCfg.overlay.networkCidr} allow" ];
|
||||
|
||||
local-zone = "\"${netCfg.overlay.domain}.\" static";
|
||||
local-data =
|
||||
|
|
@ -43,15 +40,6 @@ in
|
|||
in
|
||||
nodeRecords ++ serviceRecords;
|
||||
};
|
||||
|
||||
forward-zone = lib.singleton {
|
||||
name = ".";
|
||||
forward-addr = [
|
||||
"1.1.1.1"
|
||||
"8.8.8.8"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
nebula.networks.mesh.firewall.inbound = lib.singleton {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue