From: Rainer T. <ta...@ta...> - 2007-07-31 08:49:29
|
Hello, hdkutz wrote: > The commands differ! Check the man page and info of /opt/freeware/bin/hostname. > I know. This is not the problem. But is I execute existing configure (automake, mc, ...) scripts I have no influence on the commands executed. I have observed several times that the configure scripts __destroy__ my hostname !! Furthermore a hostname starting wih "-" is not valid !! Note: Unlike domain names, hostname labels can only be made up of the ASCII letters 'a' through 'z' (case-insensitive), the digits '0' through '9', and the hyphen. Labels can not start nor end with a hyphen. Special characters other than the hyphen (and the dot between labels) are not allowed, although they are sometimes used anyway. So the fact that GNU hostname sets the "-s" as a hostname violates standard RFCs !! This is a list of my installed rpm's: cdrecord-1.9-4 mkisofs-1.13-4 bash-2.05b-1 glib-1.2.10-2 gtk+-1.2.10-4 libpng-1.2.18-0 (not from IBM) xpm-3.4k-7 bash-doc-2.05b-1 zip-2.3-3 unzip-5.42-2 bzip2-1.0.2-2 gzip-1.2.4a-7 zlib-1.1.4-4 zlib-devel-1.1.4-4 glib-devel-1.2.10-2 gtk+-devel-1.2.10-4 popt-1.5-30 rpm-3.0.5-30 rpm-build-3.0.5-30 rpm-devel-3.0.5-30 m4-1.4-14 libtool-1.5.8-1 autoconf-2.61-1 (not from IBM) lynx-2.8.4-1 info-4.6-1 texinfo-4.6-1 readline-4.3-1 readline-devel-4.3-1 patch-2.5.4-4 wget-1.9-2 expect-5.34-8 tcl-8.3.3-8 tk-8.3.3-8 tar-1.13-4 sudo-1.6.7p5-2 libungif-4.1.2-1 libungif-devel-4.1.2-1 libungif-progs-4.1.2-1 libtiff-3.6.1-2 libtiff-devel-3.6.1-2 libpng-devel-1.2.18-0 (not from IBM) gdbm-1.8.3-2 libjpeg-6b-6 libjpeg-devel-6b-6 libmng-1.0.3-2 libmng-devel-1.0.3-2 gettext-0.10.40-1 gawk-3.1.3-1 flex-2.5.4a-6 bison-1.875-2 gdbm-devel-1.8.3-2 freetype-1.3.1-9 freetype-demo-1.3.1-9 freetype-devel-1.3.1-9 freetype2-2.1.7-2 freetype2-devel-2.1.7-2 expat-1.95.7-1 expat-devel-1.95.7-1 binutils-2.14-3 gcc-3.3.2-4 gdb-2.9.aix51.020209-4 gcc-c++-3.3.2-4 indent-2.2.7-2 xpm-devel-3.4k-7 openssl-0.9.6m-1 coreutils-5.0-2 openssl-devel-0.9.6m-1 openssl-doc-0.9.6m-1 make-3.80-1 ncurses-5.2-3 ncurses-devel-5.2-3 slang-1.4.4-2 slang-devel-1.4.4-2 ddd-3.3.1-2 diffutils-2.8.1-1 AIX-rpm-5.2.0.95-3 fontconfig-2.2.2-3 fontconfig-devel-2.2.2-3 automake-1.10-1 (not from IBM) > <snip> > File: coreutils.info, Node: hostname invocation, Next: hostid invocation, Pr\ > ev: uname invocation, Up: System context > > `hostname': Print or set system name > ==================================== > > With no arguments, `hostname' prints the name of the current host > system. With one argument, it sets the current host name to the > specified string. You must have appropriate privileges to set the host > name. Synopsis: > > hostname [NAME] > > The only options are `--help' and `--version'. *Note Common > options::. > > An exit status of zero indicates success, and a nonzero value > indicates failure. > <snip> > > Cheers, > ku > Bye Rainer |