hostname -s returns unknown host
Issue
The command hostname -s returns "hostname: Unknown host" even if the hostname is correctly set and retrievable in its long form with 'hostname'
An example:
# hostname
testhost.localdomain.com
# hostname -s
hostname: Unknown host
Environment
Red Hat Enterprise Linux 5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
