Extracting the IP address for the Public CNAME and add it to /etc/hosts

About this task

Important: This procedure is only applicable if you created a Pseudo-Public DNS (PPDN) for Azure.

Procedure

  1. Translate the public CNAME (for example, gi300.eastus.cloudapp.azure.com) to an IP address by running the following command.
    nslookup  <api_cname>
    For example,
    nslookup  gi300-9gbsd.eastus.cloudapp.azure.com

    The output is similar to:

  2. To avoid errors, immediately modify /etc/hosts on the bastion server where the OCP installation process is working by adding the following line.
    <discovered_ip_above> api.<cluster_name>.<zone_name>
    For example,
    <IP>   api.gi300.gi.priv.test

    The output is similar to: