oc command fails with error 'dial tcp: lookup api.xxx-xxxx-xxxx-xxxx.p1.openshiftapps.com on 8.8.8.8:53: no such host'

Solution Verified - Updated -

Issue

  • Unable to execute oc commands from bastion host in ROSA environment.
  • Encountered dial tcp: lookup - no such hosterror during ROSA cluster login process.
  • Error message: dial tcp: lookup api.xxx-xxxx-xxxx-xxxx.p1.openshiftapps.com on 8.8.8.8:53: no such host.
  • DNS resolution for api.xxx-xxxx-xxxx-xxxx.p1.openshiftapps.com is failing.

Environment

  • Red Hat OpenShift Service on AWS (ROSA) - PrivateLink
    • v4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content