The dnf utility fails to connect to cdn.redhat.com when behind proxy
Issue
dnf
is failing with following error when listing repositories with the system behind a proxy.
# dnf repolist Updating Subscription Management repositories. Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 0.0 B/s | 0 B 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 0.0 B/s | 0 B 00:00 Failed to synchronize cache for repo 'rhel-8-for-x86_64-appstream-rpms', ignoring this repo. Failed to synchronize cache for repo 'rhel-8-for-x86_64-baseos-rpms', ignoring this repo.
Environment
- Red Hat Enterprise Linux 8
dnf
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.