Windows pods are unable to resolve DNS records for services

Solution Verified - Updated -

Issue

  • DNS resolution for SVCs fail from the pods running over Windows nodes.
  • Windows pods are able to connect SVCs through ClusterIP directly as DNS resolution is failing.
> ./oc exec -it win-webserver-f4ddf858f-5x8tm -- cmd

C:\>curl -kv https://console.openshift-console.svc.cluster.local                                                                                                                           
* Could not resolve host: console.openshift-console.svc.cluster.local                                                                                                                      
* Closing connection 0                                                                                                                                                                     
curl: (6) Could not resolve host: console.openshift-console.svc.cluster.local   

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 4.12.x
  • Red Hat OpenShift support for Windows Containers
    • 7.0.1

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