Add Custom DNS Server/Entry in Openshift crc environment

If you have a private registry in your lab environment, and to add this registry to openshift crc environment, for dns setup, add single entry in NetworkManager configuration of host os, in /etc/NetworkManager/dnsmasq.d/crc.conf with address=/domain/ip format,

# /etc/NetworkManager/dnsmasq.d/crc.conf
server=/apps-crc.testing/192.168.130.11
server=/crc.testing/192.168.130.11
address=/core.harbor.apps.xiaoyao.io/192.168.1.4

Also for upstream dns server, append it with server=/domain/dnsserver format

Leave a Reply

Your email address will not be published. Required fields are marked *