Skip to content

Commit 74fcae9

Browse files
cfergeauopenshift-merge-robot
authored andcommitted
dns: Remove 'wildcard' DNS check for usermode networking
wildcard DNS won't work with usermode networking, and the warning is a source of confusion. Better to disable this check when usermode is in use, which is the default on macos and Windows.
1 parent 725fd52 commit 74fcae9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/crc/services/dns/dns.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,12 @@ func CheckCRCLocalDNSReachableFromHost(serviceConfig services.ServicePostStartCo
158158
return fmt.Errorf("Invalid IP for %s", apiHostname)
159159
}
160160

161+
if serviceConfig.NetworkMode == network.UserNetworkingMode {
162+
// user-mode networking does not setup wildcard DNS on the host. It relies on admin-helper
163+
// to create entries in /etc/hosts for routes defined in the cluster.
164+
return nil
165+
}
166+
161167
if runtime.GOOS != "darwin" {
162168
/* This check will fail with !CGO_ENABLED builds on darwin as
163169
* in this case, /etc/resolver/ will not be used, so we won't

0 commit comments

Comments
 (0)