feat: Windows DNS configuration via netsh #28

Merged
razvandimescu merged 16 commits from feat/windows-dns-config into main 2026-04-01 23:17:52 +08:00
Showing only changes of commit a464d60f12 - Show all commits

View File

@@ -126,7 +126,7 @@ async fn main() -> numa::Result<()> {
.use_rustls_tls() .use_rustls_tls()
.build() .build()
.unwrap_or_default(); .unwrap_or_default();
let url = "https://dns.quad9.net/dns-query".to_string(); let url = "https://9.9.9.9/dns-query".to_string();
let label = url.clone(); let label = url.clone();
( (
numa::config::UpstreamMode::Forward, numa::config::UpstreamMode::Forward,
@@ -152,7 +152,7 @@ async fn main() -> numa::Result<()> {
.or_else(numa::system_dns::detect_dhcp_dns) .or_else(numa::system_dns::detect_dhcp_dns)
.unwrap_or_else(|| { .unwrap_or_else(|| {
info!("could not detect system DNS, falling back to Quad9 DoH"); info!("could not detect system DNS, falling back to Quad9 DoH");
"https://dns.quad9.net/dns-query".to_string() "https://9.9.9.9/dns-query".to_string()
}) })
} else { } else {
config.upstream.address.clone() config.upstream.address.clone()