How to add or modify custom DNS servers on OpenShift

Solution Verified - Updated -

Issue

  • How to add or modify DNS server configuration to OpenShift?
  • How to add additional custom DNS servers to OpenShift for a specific domain?
  • File /etc/resolv.conf always gets rewritten in OpenShift cluster nodes;
  • How to add Azure's DNS when running OpenShift on top of Microsoft Azure?

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 3.7
    • 3.9
    • 3.10
    • 3.11

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