Your message dated Thu, 06 Dec 2012 15:32:39 +0000
with message-id <[email protected]>
and subject line Bug#568889: fixed in hostname 3.12
has caused the Debian Bug report #568889,
regarding manpages: hostname(1) manpage is poorly written
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
568889: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568889
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: manpages
Version: 3.05-1
Severity: minor
Tags: patch
The hostname(1) manual page is needlessly obtuse when it comes to
Fully Qualified Domain Names. For example, the introductory sentence
to the FQDN section states,
You can't change the FQDN (as returned by hostname --fqdn) or the DNS
domain name (as returned by dnsdomainname) with this command.
That sentence is easily proven false:
# dnsdomainname
wongs.net
# hostname foo.homeunix.org
# dnsdomainname
homeunix.org
More likely, the author meant that using 'hostname' is not the
*correct* way to change the domain name and that using it that way
might cause random breakage.
There are many tutorials on the Internet which actually tell people to
do the opposite, by putting the FQDN in /etc/hostname. I believe the
man page is correct and the tutorials are incorrect, but the man page
should explain why it's wrong and how to correctly set the FQDN.
I have attached, as a patch to the man page, an example of the
"correct" way to set the FQDN. I have also corrected other small
errors, such as the part which says that /etc/hosts and /etc/hostname
should "only contain domain name".
-- System Information:
Debian Release: 5.0.3
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i586)
Kernel: Linux 2.6.26-2-486
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
manpages depends on no packages.
manpages recommends no packages.
Versions of packages manpages suggests:
ii man-db [man-browser] 2.5.2-4 on-line manual pager
-- no debconf information
--- hostname.1.orig 2007-12-27 03:47:48.000000000 -0800
+++ hostname.1 2010-02-08 05:19:06.000000000 -0800
@@ -85,24 +85,40 @@
.IR /etc/hostname ).
.SS THE FQDN
-You can't change the FQDN (as returned by
-.BR "hostname \-\-fqdn" )
-or the DNS domain name (as returned by
-.BR "dnsdomainname" )
-with this command. The FQDN of the system is the name that the
+The FQDN (Fully Qualified Domain Name) of the system is the name that the
.BR resolver (3)
-returns for the host name.
+returns for the host name, such as,
+.IR ursula.example.com .
+It is usually the hostname followed by the DNS domain name (the part
+after the first dot). You can check the FQDN using
+.B "hostname \-\-fqdn"
+or the domain name using
+.BR "dnsdomainname" .
+.LP
+You should not attempt to change the FQDN with
+.B hostname
+or
+.BR dnsdomainname .
+.LP
+The recommended method of setting the FQDN is to make the hostname be
+an alias for the fully qualified name using
+.IR /etc/hosts ,
+DNS, or NIS. For example, if the hostname was "ursula", one might have a line in
+.I /etc/hosts
+which reads
+.LP
+.RS
+127.0.1.1 ursula.example.com ursula
+.RE
.LP
Technically: The FQDN is the name
-.BR gethostbyname (2)
-returns for the host name returned by
+.BR gethostbyname (3)
+returns when given the host name returned by
.BR gethostname (2).
-The DNS domain name is the part after the first dot.
-.LP
-Therefore it depends on the configuration (usually in
+Therefore it depends on the configuration of the resolver (usually in
.IR /etc/host.conf )
-how you can change it. Usually (if the hosts file is parsed before DNS or
-NIS) you can change it in
+how you can change it. Usually the hosts file is parsed before DNS or
+NIS, so it is most common to change the FQDN in
.IR /etc/hosts .
.SH OPTIONS
@@ -158,9 +174,12 @@
option in
.BR /etc/resolv.conf .
.SH FILES
-.B /etc/hosts
.B /etc/hostname
-This file should only contain domain name and not the full FQDN.
+This file should only contain the host name, not the domain name. It is read at boot time by the system initialization scripts to set the hostname.
+.LP
+.B /etc/hosts
+Usually, this is where one sets the domain name by aliasing the host name to the FQDN.
+
.SH AUTHORS
Peter Tobias, <[email protected]>
.br
--- End Message ---
--- Begin Message ---
Source: hostname
Source-Version: 3.12
We believe that the bug you reported is fixed in the latest version of
hostname, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Meskes <[email protected]> (supplier of updated hostname package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Thu, 06 Dec 2012 16:15:53 +0100
Source: hostname
Binary: hostname
Architecture: source amd64
Version: 3.12
Distribution: unstable
Urgency: low
Maintainer: Debian Hostname Team <[email protected]>
Changed-By: Michael Meskes <[email protected]>
Description:
hostname - utility to set/show the host name or domain name
Closes: 568889
Changes:
hostname (3.12) unstable; urgency=low
.
* Rewrote parts of the manpage.
Thanks to Ben Wong <[email protected]> (Closes: #568889)
* Bumped Standards-Version to 3.9.3, no changes needed.
Checksums-Sha1:
e464065ffb6d2d6cb2a0ccca5da69d09d1bb0a67 804 hostname_3.12.dsc
145ccabb440042145deafd80c2c1ee88d63698f1 13785 hostname_3.12.tar.gz
f34ee13b86e0d99b09b71633475ac1f868be9165 15396 hostname_3.12_amd64.deb
Checksums-Sha256:
c1be333a87c001885ef7bf8d8b79581b0f30dd85333c9de1373709c9742cce65 804
hostname_3.12.dsc
930dcb23f168920ea22c1b4061a65a28dfd1434d0ea36b8b2cd207afc00e0368 13785
hostname_3.12.tar.gz
b40491ee0bc5a77196fb67ee12a593baeb733c97badb64dcf07338f5d0d1bb9c 15396
hostname_3.12_amd64.deb
Files:
10d49932a75a11995f9bead99731b26f 804 admin required hostname_3.12.dsc
f7965b63320f66cc1cbd5fa031d1bcd7 13785 admin required hostname_3.12.tar.gz
b8b3a336c279f2cbbe63ee2c4d62e2d4 15396 admin required hostname_3.12_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
iD8DBQFQwLhCVkEm8inxm9ERAmEIAJ9+v4XvpLeEVHdbDNaTi/NjypP+/wCfbq/B
OC/qJC7+xaVyjKhB5BmAQY8=
=u4Uq
-----END PGP SIGNATURE-----
--- End Message ---