Re: Host: fqdn

On  Tue Oct  3 23:33:46 1995 mshapiro@ncsa.uiuc.edu (Michael Shapiro) wrote:
 
> I looked at Mac/Windows/Unix
> gethostbyname() and the Unix version did not return the fqdn.

Most likely due to a broken /etc/hosts file.  In my experience, many sys
admins put

  192.1.1.1  foo foo.bar.com

in the hosts file instead of the correct form:

  192.1.1.1  foo.bar.com foo

If you find the h_name is not qualified, you can increase the probability of
turning up a fqdn if you poke through the alias list for something with dots.

_Mike

Received on Wednesday, 4 October 1995 03:27:03 UTC