Skip to main content

DNS query fails during crc start, Failed public DNS query

When you run OpenShift with with Codeready Containers on your laptop you might get the below error when starting the cluster.

WARN Failed public DNS query from the cluster: ssh command error:
command : host -R 3
err : exit status 1
output : ;; connection timed out; no servers could be reached

I resolved this error by running the command like this, taking the DNS address from my wifi router.

crc config set nameserver #YOUR IP MIGHT\WILL BE DIFFERENT
crc start

Also, make sure that the Virtual Switch have access to the internet.

Last updated on