Hostname is incorrect with hostname and hostname -f
Issue
- System does not display the correct hostname with the
hostname
andhostname -f
commands.
$ hostname
test1.example.com
$ hostname -s
test1
$ hostname -f
test1
Environment
- Red Hat Enterprise Linux 5
- Red Hat Enterprise Linux 6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.