Package: hostname
Version: 2.95
--- Please enter the report below this line. ---
The debian man page says dsndomainname while the "--help" option says
domainname. Neither of which work for setting anything.
[term output]
ocelot:/home/john# which hostname
/bin/hostname
ocelot:/home/john# l /bin/host*
-rwxr-xr-x 1 root root 11712 2007-12-27 09:50 /bin/hostname
ocelot:/home/john# l /bin/dns*
-rwxr-xr-x 1 root root 11712 2007-12-27 09:50 /bin/dnsdomainname
ocelot:/home/john# dnsdomainname
crazies.org
ocelot:/home/john# dnsdomainname bar.org
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.
ocelot:/home/john# dnsdomainname -V
hostname 2.95
ocelot:/home/john# l /bin/yp*
ls: cannot access /bin/yp*: No such file or directory
ocelot:/home/john# l /bin/nis*
ls: cannot access /bin/nis*: No such file or directory
ocelot:/home/john#
ocelot:/home/john# uname -a
Linux ocelot 2.6.27.7-hou2.2-02.jmc64 #1 SMP Tue Nov 25 09:21:12 CST 2008
x86_64 GNU/Linux
ocelot:/home/john#
[/term output]
Thanks,
John
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.27.7-hou2.2-02.jmc64
Debian Release: lenny/sid
990 testing www.debian-multimedia.org
990 testing security.debian.org
990 testing ftp.us.debian.org
500 unstable ftp.us.debian.org
500 testing-proposed-updates ftp.us.debian.org
500 stable security.debian.org
500 stable http.us.debian.org
500 stable ftp.us.debian.org
500 proposed-updates http.us.debian.org
--- Package information. ---
Depends (Version) | Installed
=======================-+-===========
|
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]