hostname?

Lex Spoon lex at cc.gatech.edu
Mon Mar 20 10:13:02 UTC 2000


Bob Arning <arning at charm.net> wrote:
> On Sun, 19 Mar 2000 14:06:52 "Lex Spoon" <lex at cc.gatech.edu> wrote:
> >I hear that on some setups, localHostAddress will return 127.0.0.1 or
> >0.0.0.0, even though the host is connected to the network.  IMHO, this
> >is either a problem in the host's setup, or a problem in the VM for that
> >platform, but I have no idea which.  :|
> 
> As I vaguely understand it, the problem _can_ be in the Linux hosts file which lists an entry for localhost. That name is looked up by DNS and can return 0.0.0.0 if not found (e.g. the name is missing, wrong or the machine has been moved somewhere (a different domain?) that cannot resolve the name). Linux gurus, feel free to correct/complete this picture.
> 

On Unix, you get back nil if the host does not exist:

	NetNameResolver addressForName: 'aoeuaoeaoeu' -->  nil

This seems better than 0.0.0.0.

Lex





More information about the Squeak-dev mailing list