From d925f7e063e9fc785817dbe8d774464ac1874293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 25 Jun 2024 17:31:24 +0200 Subject: [PATCH 1/2] fix(stdlib): clear default servers when setting custom servers for `dns_lookup` --- src/stdlib/dns_lookup.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stdlib/dns_lookup.rs b/src/stdlib/dns_lookup.rs index 6836a063e5..d3754c18da 100644 --- a/src/stdlib/dns_lookup.rs +++ b/src/stdlib/dns_lookup.rs @@ -219,6 +219,7 @@ mod non_wasm { .map(|s| s.clone().try_array()) .transpose()? { + conf.servers.clear(); for server in servers { let mut server = server.try_bytes_utf8_lossy()?; if !server.contains(':') { From 6c3cc725b81d17c1ddd0eb289624c43f060e0d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 25 Jun 2024 17:34:15 +0200 Subject: [PATCH 2/2] Add changelog entry --- changelog.d/910.fix.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/910.fix.md diff --git a/changelog.d/910.fix.md b/changelog.d/910.fix.md new file mode 100644 index 0000000000..ba3acc0d6d --- /dev/null +++ b/changelog.d/910.fix.md @@ -0,0 +1 @@ +`server` option for `dns_lookup` now properly replaces default server settings