yum fails with error "[Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com"

Solution Verified - Updated -

Issue

  • yum is unable to fetch the repositories from Red Hat CDN and failing with below error:-

    # yum repolist
    Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
    https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error"
    Trying other mirror.
    https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/os/repodata/repomd.xml: [Errno 14] curl#6 - "Could not resolve host: cdn.redhat.com; Unknown error"
    Trying other mirror.
    repo id                                                                                            repo name                                                                                                 status
    rhel-7-server-rpms/7Server/x86_64                                                                  Red Hat Enterprise Linux 7 Server (RPMs)                                                                  0
    repolist: 0
    

Environment

  • Red Hat Enterprise Linux
  • Red Hat Subscription Manager (RHSM)

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