mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 23:29:08 +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 = {
|
unbound = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
settings = {
|
settings.server = {
|
||||||
server = {
|
|
||||||
interface = [ netCfg.overlay.interface ];
|
interface = [ netCfg.overlay.interface ];
|
||||||
access-control = [
|
access-control = [ "${toString netCfg.overlay.networkCidr} allow" ];
|
||||||
"${toString netCfg.overlay.networkCidr} allow"
|
|
||||||
];
|
|
||||||
|
|
||||||
local-zone = "\"${netCfg.overlay.domain}.\" static";
|
local-zone = "\"${netCfg.overlay.domain}.\" static";
|
||||||
local-data =
|
local-data =
|
||||||
|
|
@ -43,15 +40,6 @@ in
|
||||||
in
|
in
|
||||||
nodeRecords ++ serviceRecords;
|
nodeRecords ++ serviceRecords;
|
||||||
};
|
};
|
||||||
|
|
||||||
forward-zone = lib.singleton {
|
|
||||||
name = ".";
|
|
||||||
forward-addr = [
|
|
||||||
"1.1.1.1"
|
|
||||||
"8.8.8.8"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
nebula.networks.mesh.firewall.inbound = lib.singleton {
|
nebula.networks.mesh.firewall.inbound = lib.singleton {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue