Bug 837069
Summary: | hostname -f may not return FQDN | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Jim Pirzyk <jim+redhat> |
Component: | net-tools | Assignee: | Jiri Popelka <jpopelka> |
Status: | CLOSED NOTABUG | QA Contact: | qe-baseos-daemons |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.5 | Keywords: | Reopened |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2012-07-03 13:22:12 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Jim Pirzyk
2012-07-02 16:22:48 UTC
Yes, the '-f' option depends on configuration (/etc/hosts). See the 'THE FQDN' section in hostname(1). Try -A,--all-fqdns instead. Can we get the documentation then fixed that -f will not return fqdn if there is a configuration error? the man page and -h help both say that FQDN will be returned with -f. The code can determine that -f will *not* return fqdn, because it is the same result as -s. -f, --fqdn, --long Display the FQDN (Fully Qualified Domain Name). A FQDN consists -f, --fqdn, --long long host name (FQDN) This may be working as designed, but I am asking for the design bug to be resolved. The description of the '-f' option also says: "See the warnings in section THE FQDN above, and avoid using this option; use hostname --all-fqdns instead." |