Public bug reported: Binary package hint: hostname
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: Description: Ubuntu 8.04.1 Release: 8.04 hostname: Installed: 2.94 Candidate: 2.94 Version table: *** 2.94 0 500 http://ftp.leg.uct.ac.za hardy/main Packages 100 /var/lib/dpkg/status ** Affects: hostname (Ubuntu) Importance: Undecided Status: New -- invoking hostname as domainname does not produce results described in --help https://bugs.launchpad.net/bugs/277568 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs