| diff -Naur a/integration/networking/resolvconf_test.go b/integration/networking/resolvconf_test.go |
| --- a/integration/networking/resolvconf_test.go 2025-02-19 13:08:42.556082605 -0800 |
| +++ b/integration/networking/resolvconf_test.go 2025-02-19 13:10:23.769140737 -0800 |
| @@ -61,7 +61,7 @@ |
| |
| # Based on host file: 'RESOLV.CONF' (internal resolver) |
| # ExtServers: [host(127.0.0.53)] |
| -# Overrides: [] |
| +# Overrides: [search] |
| # Option ndots from: internal |
| `)) |
| } |
| diff -Naur a/libnetwork/sandbox_dns_unix.go b/libnetwork/sandbox_dns_unix.go |
| --- a/libnetwork/sandbox_dns_unix.go 2025-02-19 13:08:42.568082730 -0800 |
| +++ b/libnetwork/sandbox_dns_unix.go 2025-02-19 13:09:06.304330850 -0800 |
| @@ -277,6 +277,8 @@ |
| } |
| if len(sb.config.dnsSearchList) > 0 { |
| rc.OverrideSearch(sb.config.dnsSearchList) |
| + } else { |
| + rc.OverrideSearch(rc.Search()) |
| } |
| if len(sb.config.dnsOptionsList) > 0 { |
| rc.OverrideOptions(sb.config.dnsOptionsList) |