From: schrott (schrott@lise.physik.tu-berlin.de)
Date: 09/03/93


From: schrott@lise.physik.tu-berlin.de (schrott)
Subject: Question about hostname
Date: 3 Sep 1993 22:18:51 GMT

I have a problem in setting my system's hostname. I recently installed
 the net-2 utilities, which include also a new version of /bin/hostname.
 It should set the site's name found in /etc/HOSTNAME when called
 as "/bin/hostname -S" in rc.local at boot time.
 What happens is this: hostname reads the name correctly from the
 file, tries to do a "gethostbyname" system call which fails
 (Errorcode in h_error is 0) and gives a message:
hostname: unknown host MY_NAME
 
 Also all programs that make use of gethostbyname will fail --
  "dip" for example exits with "MY_NAME: Error 0"

I first installed the net-2 utilities under 0.99pl11, then updated to
 pl12. I tried both binary and source version (gcc 2.4.5,libc 4.4.1)
 My /etc/hosts seems to be set all right, according to the rules
 given in it. (Of course I did "hostcvt.build".) Using the old
 /bin/hostname together with 0.99pl8, everything worked fine.
 
  Can anyone please give me a hint?
        Thanx, Ron