Why hostname -A does not show all FQDNs

Solution Verified - Updated -

Issue

When using hostname for querying for all fully qualified domain names (FQDN) associated with IP addresses of the host, using hostname -A or hostname --all-fqdns, some FQDNs are missing, or only newline is diplayed:

[root@rhel7u6-1 ~]# hostname --all-fqdns

[root@rhel7u6-1 ~]# 

Environment

  • Red Hat Enterprise Linux 7

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