Re: Host: fqdn
Mike Braca (mb@ebt.com)
Wed, 4 Oct 1995 06:20:23 +0500
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