W3C home > Mailing lists > Public > ietf-http-wg@w3.org > October to December 1995

Re: Host: fqdn

From: Mike Braca <mb@ebt.com>
Date: Wed, 4 Oct 1995 06:20:23 +0500
Message-Id: <9510041020.AA06718@saskatoon.ebt>
To: http-wg%cuckoo.hpl.hp.com@hplb.hpl.hp.com, mshapiro@ncsa.uiuc.edu

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

This archive was generated by hypermail 2.4.0 : Thursday, 2 February 2023 18:42:56 UTC