Getting the error gaierror: [Errno -2] Name or service not known while executing the subscription-manager and yum commands on the clients registered with Red Hat Satellite.

Solution Verified - Updated -


  • The subscription-manager commands and/or yum transactions failed with a traceback.
  • Along with the traceback seen after subscription-manager and/or yum commands, below error can be observed at the same time:
# subscription-manager identity
   Network error, unable to connect to server. Please see /var/log/rhsm/rhsm.log for more information.


  • Red Hat Satellite 6.3
  • Red Hat Capsule 6.3

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In