A FQDN DNS resolution works, but the cURL command fails when the CNAME record points to a wildcard destination

Solution Verified - Updated -

Issue

  • The command curl gives the following error:

    $ curl -k https://custom-name.example.com/
    curl: (6) Could not resolve host: custom-name.example.com
    
  • However, requesting the same address in a browser works.

  • The resolve using dig or nslookup also works.

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x CoreOS nodes
  • Red Hat Enterprise Linux (RHEL)
    • 8.x

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