How to configure DNS for Pods in Openshift 4?

Solution Verified - Updated -

Issue

  • How to add an additional search domain for pods in order to resolve other domains beyond the cluster domain
  • The domain search list provided by DHCP does not contain all the required domains. How can we add additional?
  • Is it possible to modify the domain search in /etc/resolv.conf?
  • An application is running on OpenShift and is failing to connect to outside resources due to the application not being configured to use fully qualified domain names.

Environment

  • Red Hat OpenShift Container Platform (OCP) 4.2+

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