Bug 117393 - hostname should be set to FQDN
Summary: hostname should be set to FQDN
Status: RESOLVED WORKSFORME
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Final
Hardware: Other All
: P5 - None : Normal
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 23:46 UTC by Peter Bowen
Modified: 2005-09-16 09:22 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Bowen 2005-09-15 23:46:41 UTC
We should set the hostname to the fully qualified domain name, if available. 
Currenly boot.localnet strips off any domain name found in /etc/HOSTNAME before
calling /bin/hostname.  The glibc manual explicitly states that sethostname
should be called wit the FQDN
(http://www.gnu.org/software/libc/manual/html_node/Host-Identification.html)
Comment 1 Thorsten Kukuk 2005-09-16 08:07:40 UTC
I know that Red Hat is doing that, but not other systems like Solaris.

As the manual page also explicitly states is, that there are different names.
And POSIX itself does not say anything about if you should use FQDN or only
the pure hostname.

Setting the FQDN like Red Hat is doing breaks some protocols like SecureRPC
and NIS+.
Comment 2 Dr. Werner Fink 2005-09-16 09:22:14 UTC
Next point is that the local hostname is not always the FQDN. With two
different networks may have tow different Full Quallified Domain Names.
Combined with NIS/NIS+/YP you get also some more Names for YP which may
not the same as the DNS names.  At least you may choose some alias names
within one domain and on one of those are identical with the local host
name.

IMHO it is a BUG to set the local hostname to FQDN