mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
Route all DNS traffic to my own DNS servers
This commit is contained in:
parent
100f02a2d8
commit
56c7b22bf1
1 changed files with 4 additions and 1 deletions
|
|
@ -108,7 +108,10 @@ in
|
||||||
matchConfig.Name = netCfg.overlay.interface;
|
matchConfig.Name = netCfg.overlay.interface;
|
||||||
address = [ netCfg.overlay.cidr ];
|
address = [ netCfg.overlay.cidr ];
|
||||||
dns = netCfg.overlay.dnsServers;
|
dns = netCfg.overlay.dnsServers;
|
||||||
domains = [ netCfg.overlay.domain ];
|
domains = [
|
||||||
|
netCfg.overlay.domain
|
||||||
|
"~." # Route all DNS traffic to this interface first
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue