2023-12-02 10:42:59 +00:00
|
|
|
_: {
|
2023-11-04 10:02:11 +00:00
|
|
|
### systemd-resolved
|
|
|
|
services.resolved = {
|
|
|
|
enable = true;
|
|
|
|
dnssec = "true";
|
2023-11-04 10:14:42 +00:00
|
|
|
domains = ["~."];
|
2023-11-04 10:02:11 +00:00
|
|
|
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"
|
|
|
|
];
|
|
|
|
extraConfig = "DNSOverTLS=yes";
|
|
|
|
};
|
|
|
|
|
|
|
|
### NetworkManager integration
|
|
|
|
networking.networkmanager.dns = "systemd-resolved";
|
2023-11-04 10:14:42 +00:00
|
|
|
}
|