modules/networking-client: use opportunistic DoT
This commit is contained in:
parent
1e5d6a63d5
commit
2009ed5472
1 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
|
@ -13,10 +14,18 @@
|
||||||
};
|
};
|
||||||
services.resolved = {
|
services.resolved = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fallbackDns = [ "10.1.0.1" ];
|
fallbackDns = [
|
||||||
|
"95.216.8.12#securedns.privatevoid.net"
|
||||||
|
"152.67.73.164#securedns.privatevoid.net"
|
||||||
|
"10.1.0.1"
|
||||||
|
];
|
||||||
llmnr = "true";
|
llmnr = "true";
|
||||||
dnssec = "false";
|
dnssec = "false";
|
||||||
extraConfig = "Cache=no-negative";
|
extraConfig = ''
|
||||||
|
Cache=no-negative
|
||||||
|
DNSOverTLS=opportunistic
|
||||||
|
DNS=${builtins.concatStringsSep " " config.services.resolved.fallbackDns}
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
networking.firewall = let
|
networking.firewall = let
|
||||||
ports = [
|
ports = [
|
||||||
|
|
Loading…
Reference in a new issue