nixos: resolved: use cfg.dnsovertls

This commit is contained in:
Guanran Wang 2024-01-28 07:26:33 +08:00
parent de0b5c7dc3
commit a0e4dcd93f
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -6,6 +6,12 @@
"223.6.6.6" "223.6.6.6"
"2400:3200::1" "2400:3200::1"
"2400:3200:baba::1" "2400:3200:baba::1"
### Google DNS
#"8.8.8.8#dns.google"
#"8.8.4.4#dns.google"
#"2001:4860:4860::8888#dns.google"
#"2001:4860:4860::8844#dns.google"
]; ];
### systemd-resolved ### systemd-resolved
@ -13,13 +19,7 @@
enable = true; enable = true;
domains = ["~."]; domains = ["~."];
dnssec = "true"; dnssec = "true";
extraConfig = "DNSOverTLS=yes"; dnsovertls = "true";
fallbackDns = [
#"8.8.8.8#dns.google"
#"8.8.4.4#dns.google"
#"2001:4860:4860::8888#dns.google"
#"2001:4860:4860::8844#dns.google"
];
}; };
### https://wiki.archlinux.org/title/Sysctl#Improving_performance ### https://wiki.archlinux.org/title/Sysctl#Improving_performance