2024-12-29 22:16:59 +08:00
|
|
|
{ config, pkgs, lib, ... }:
|
2024-12-29 19:39:14 +08:00
|
|
|
|
|
|
|
{
|
|
|
|
# Do a lot of systemd-resolved related chores
|
2024-12-29 22:16:59 +08:00
|
|
|
config.networking.nameservers = [
|
2024-12-29 19:39:14 +08:00
|
|
|
"45.90.28.0#c393f6.dns.nextdns.io"
|
|
|
|
"45.90.30.0#c393f6.dns.nextdns.io"
|
|
|
|
];
|
|
|
|
|
2024-12-29 22:16:59 +08:00
|
|
|
config.services.resolved = {
|
2024-12-29 19:39:14 +08:00
|
|
|
enable = true;
|
|
|
|
dnssec = "false"; # https://superuser.com/a/1493674
|
|
|
|
domains = [ "~." "fawn-cod.ts.net" ];
|
|
|
|
# Use Cloudflare DNS resolver as fallback if things go wrong.
|
|
|
|
fallbackDns = [ "1.1.1.1#one.one.one.one" "1.0.0.1#one.one.one.one" ];
|
|
|
|
dnsovertls = "true";
|
|
|
|
};
|
|
|
|
}
|