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 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(':') {