Bug 117393

Summary: hostname should be set to FQDN
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Peter Bowen <pzb>
Component: BasesystemAssignee: Dr. Werner Fink <werner>
Status: RESOLVED WORKSFORME QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: kukuk
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

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