https://bugzilla.redhat.com/show_bug.cgi?id=1280529
Bug ID: 1280529 Summary: Document incorrectly suggests using FQDN in /etc/hostname Product: Fedora Documentation Version: devel Component: networking-guide Assignee: swadeley@redhat.com Reporter: jkeating@j2solutions.net QA Contact: docs-qa@lists.fedoraproject.org CC: swadeley@redhat.com
Description of problem: https://docs.fedoraproject.org/en-US/Fedora/23/html/Networking_Guide/ch-Conf...
This section of the documentation recommends using a FQDN for the static hostname, which is stored in /etc/hostname. However if one does that, uname -n (to find the node name) will always return the FQDN. This has impact on subsystems like python when determining the short name of the host. A better solution is to use the shortname in /etc/hostname and supply a FQDN in /etc/hosts.
Version-Release number of selected component (if applicable): devel (shown as 23)
How reproducible: Very
Steps to Reproduce: 1. Follow directions leading to FQDN in /etc/hostname 2. uname -n 3. hostname -s
Actual results: FQDN shown as nodename, which does not match hostname -s
Expected results: uname -n and hostname -s would both report the same short name, as defined in /etc/hostname
Additional info: The RHEL7 documentation also suffers from this defect.