Skip to content

Files

Latest commit

936d318 · Feb 4, 2021

History

History
36 lines (29 loc) · 1.31 KB

dns-forwarding.md

File metadata and controls

36 lines (29 loc) · 1.31 KB
title description author ms.author ms.service ms.topic ms.date
Configure DNS Forwarding for Azure Red Hat OpenShift 4
Configure DNS Forwarding for Azure Red Hat OpenShift 4
sakthi-vetrivel
suvetriv
azure-redhat-openshift
conceptual
04/24/2020

Configure DNS forwarding on an Azure Red Hat OpenShift 4 Cluster

To configure DNS Forwarding on an Azure Red Hat OpenShift cluster, you'll need to modify the DNS operator. This modification will allow your application pods running inside the cluster to resolve names hosted on a private DNS server outside the cluster. These steps are documented for OpenShift 4.6 here.

For example, if you want to forward all DNS requests for *.example.com to be resolved by a DNS server 192.168.100.10, you can edit the operator configuration by running:

oc edit dns.operator/default

This will launch an editor and you can replace spec: {} with:

spec:
 servers:
 - forwardPlugin:
     upstreams:
     - 192.168.100.10
   name: example-dns
   zones:
   - example.com

Save the file and exit your editor.

Next steps

Check out more information on DNS forwarding for OpenShift 4.6 here.