harden dns
This commit is contained in:
@@ -106,6 +106,12 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
dnsovertls = "opportunistic";
|
||||||
|
dnssec = "allow-downgrade";
|
||||||
|
};
|
||||||
|
|
||||||
services.networkd-dispatcher = {
|
services.networkd-dispatcher = {
|
||||||
enable = true;
|
enable = true;
|
||||||
rules."50-tailscale" = {
|
rules."50-tailscale" = {
|
||||||
|
|||||||
@@ -46,7 +46,18 @@ in
|
|||||||
certificate_chain_path = "/run/credentials/adguardhome.service/fullchain.pem";
|
certificate_chain_path = "/run/credentials/adguardhome.service/fullchain.pem";
|
||||||
private_key_path = "/run/credentials/adguardhome.service/key.pem";
|
private_key_path = "/run/credentials/adguardhome.service/key.pem";
|
||||||
};
|
};
|
||||||
dns.bind_hosts = tailscaleIps;
|
dns = {
|
||||||
|
bind_hosts = tailscaleIps;
|
||||||
|
upstream_dns = [
|
||||||
|
"https://dns10.quad9.net/dns-query"
|
||||||
|
"https://cloudflare-dns.com/dns-query"
|
||||||
|
"https://dns.google/dns-query"
|
||||||
|
];
|
||||||
|
fallback_dns = [
|
||||||
|
"https://cloudflare-dns.com/dns-query"
|
||||||
|
"https://dns.google/dns-query"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user