Behavior of hostname command in RHEL6 and RHEL 7

Solution Verified - Updated -

Issue

  • Why hostname command does not shows any syntax error while passing multiple values in RHEL6?
  • Connectivity is getting lost due to incorrect host-name.

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • Red Hat Enterprise Linux (RHEL) 7
  • hostname

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