Your message dated Wed, 16 Sep 2009 09:54:30 +0200
with message-id <[email protected]>
and subject line Re: [Hostname-devel] Bug#501005: [hostname] domainname command
still not working
has caused the Debian Bug report #501005,
regarding invoking hostname as domainname does not produce results described in
--help
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.)
--
501005: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501005
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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 ---
On Tue, Sep 15, 2009 at 06:24:01PM +0200, Graham Inggs wrote:
> As of version 2.97 this is fixed for 'ypdomainname' and
> 'nisdomainname', but not 'domainname'.
The fix is different, yes, but the original report is fixed. Your bug report
said:
> According to 'hostname --help', invoking hostname as domainname should
> display the NIS/YP domain name, instead the host name is displayed.
This indeed is fixed as hostname --help does not talk about domainname anymore.
That is unless I missed it somewhere. Anyway, the hostname package does not
install anything under the name of domainname, nor does it talk about a
'domainname' binary anymore which btw. was not handled in sources at all.
I do agree of course that we have to fix the conflicts with the nis package,
but given that there is a different bug open for that I close this one.
Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
ICQ: 179140304, AIM/Yahoo/Skype: michaelmeskes, Jabber: [email protected]
Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!
--- End Message ---