--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: invoking hostname as domainname does not produce results described in --help
- From: Graham Inggs <graham.inggs@uct.ac.za>
- Date: Fri, 03 Oct 2008 11:40:50 +0200
- Message-id: <48E5E8A2.7020409@uct.ac.za>
Package: hostname
Version: 2.93
Severity: normal
*** Please type your report below this line ***
According to 'hostname --help', invoking hostname as domainname should
display the NIS/YP domain name, instead the host name is displayed.
Transcript follows:
$ hostname
dreamcoat
$ hostname -y
che.uct.ac.za
$ ln -s /bin/hostname domainname
$ ./domainname
dreamcoat
Output of 'hostname --help':
$ hostname --help
Usage: hostname [-v] {hostname|-F file} set host name (from file)
domainname [-v] {nisdomain|-F file} set NIS domain name (from file)
hostname [-v] [-d|-f|-s|-a|-i|-y] display formated name
hostname [-v] display host name
hostname -V|--version|-h|--help print info and exit
dnsdomainname=hostname -d, {yp,nis,}domainname=hostname -y
-s, --short short host name
-a, --alias alias names
-i, --ip-address addresses for the host name
-f, --fqdn, --long long host name (FQDN)
-d, --domain DNS domain name
-y, --yp, --nis NIS/YP domain name
-F, --file read host name or NIS domain name from given file
This command can get or set the host name or the NIS domain name. You can
also get the DNS domain or the FQDN (fully qualified domain name).
Unless you are using bind or NIS for host lookups you can change the
FQDN (Fully Qualified Domain Name) and the DNS domain name (which is
part of the FQDN) in the /etc/hosts file.
As some commercial packages expect the NIS/YP domain name, I suggest
inserting the following lines in hostname.c:
if (!strcmp(progname, "domainname"))
type = NIS;
immediately below the lines:
if (!strcmp(progname, "dnsdomainname"))
type = DNS;
Alternatively, the help text should be updated to match the current
behavior.
-- System Information:
Debian Release: 4.0
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.25.4-dreamcoat
Locale: LANG=en_ZA.UTF-8, LC_CTYPE=en_ZA.UTF-8 (charmap=UTF-8)
Versions of packages hostname depends on:
ii libc6 2.3.6.ds1-13etch7 GNU C Library: Shared libraries
hostname recommends no packages.
-- no debconf information
--- End Message ---
--- Begin Message ---
Source: hostname
Source-Version: 2.97
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:
hostname_2.97.dsc
to pool/main/h/hostname/hostname_2.97.dsc
hostname_2.97.tar.gz
to pool/main/h/hostname/hostname_2.97.tar.gz
hostname_2.97_amd64.deb
to pool/main/h/hostname/hostname_2.97_amd64.deb
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 501005@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Michael Meskes <meskes@debian.org> (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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 13 Sep 2009 14:34:13 +0200
Source: hostname
Binary: hostname
Architecture: source amd64
Version: 2.97
Distribution: unstable
Urgency: low
Maintainer: Debian Hostname Team <hostname-devel@lists.alioth.debian.org>
Changed-By: Michael Meskes <meskes@debian.org>
Description:
hostname - utility to set/show the host name or domain name
Closes: 390527 420053 483221 501005 535467 540774 543666 543892
Changes:
hostname (2.97) unstable; urgency=low
.
* New maintainer, closes: #543892
* Bumped Standards-Version to 3.8.3, no changes needed.
* Do not print trailing blank for option "-a", closes: #390527
* Refer to correct init file, closes: #540774
* Applied patch by Scott James Remnant <scott@ubuntu.com> to take care of an
empty or non existant /etc/hostname, closes: #543666
* Made package description and manpage clearer, closes: #483221
* Added patch by Michael Stapelberg <michael+db20090501@stapelberg.de> to
better cope with IPv6, closes: #535467
* Added nisdomainname/ypdomainname, closes: #501005
* Strip domain name returned by gethostname(), closes: #420053
Checksums-Sha1:
80b7f370969757c60338195dda672aa6561f14a4 804 hostname_2.97.dsc
513b7f9205f3365764f75c89411a7d8445e62edf 10582 hostname_2.97.tar.gz
6b66d29386460976020a53d938c1a025363c2909 13386 hostname_2.97_amd64.deb
Checksums-Sha256:
ca107b31815797d9bbb045b20b9cf4bfb835a11747720635b662e1aaddf1ecb5 804 hostname_2.97.dsc
ae182be8403412e798f29430a384a8c2c25570abd6fc619efbab4a06f90891de 10582 hostname_2.97.tar.gz
330d2c73d52e6a6bbf6be56c0f165180e0e43cd1fc5e9ec43b1c9be317e7a993 13386 hostname_2.97_amd64.deb
Files:
b160f8ad93cf8fcff2d7d8782f510cf0 804 admin required hostname_2.97.dsc
e510efc5a55f29ae644dc1aeee51f205 10582 admin required hostname_2.97.tar.gz
d7be580e0e1dd55e09f557645726bcf7 13386 admin required hostname_2.97_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iD8DBQFKrfL3VkEm8inxm9ERAgLeAJ973SPljQxhXlI2kEapvEu4agyolwCeLb00
HYJxl9cNkevjNDoKFtOMQx8=
=5SL/
-----END PGP SIGNATURE-----
--- End Message ---