Files
moby/libnetwork/sandbox_dns_windows.go
Rob Murray 354dfdb928 Delete /etc/hosts entries on network disconnect
Delete the entries that were added, rather than looking at the service
map (DNS config) and trying to delete entries without accounting for
the container's --hostname.

Signed-off-by: Rob Murray <rob.murray@docker.com>
2024-11-15 10:58:30 +00:00

29 lines
533 B
Go

//go:build windows
package libnetwork
import (
"context"
"net/netip"
)
// Stub implementations for DNS related functions
func (sb *Sandbox) setupResolutionFiles(_ context.Context) error {
return nil
}
func (sb *Sandbox) restoreHostsPath() {}
func (sb *Sandbox) restoreResolvConfPath() {}
func (sb *Sandbox) addHostsEntries(_ context.Context, ifaceIP []netip.Addr) error {
return nil
}
func (sb *Sandbox) deleteHostsEntries(ifaceAddrs []netip.Addr) {}
func (sb *Sandbox) updateDNS(ipv6Enabled bool) error {
return nil
}