Host: fqdn

Is it known how to convert a non-fqdn to a fqdn in exactly the
same way that gethostbyname() does it when it looks up the IP address?

My experiments with the hostent returned by gethostbyname() did not
have the fqdn in certain cases.  I looked at Mac/Windows/Unix
gethostbyname() and the Unix version did not return the fqdn.

    hostent = gethostbyname("sdg")

should have set hostent->h_name to "" but it only was
set to "sdg".

(Note - the Mac and Windows version of gethostbyname() did set
hostent->h_name to the fqdn "").

Received on Tuesday, 3 October 1995 20:26:09 UTC