[comp.unix.internals] Having trouble getting gethostbyname

and@ux.rfhsm.lon.ac.uk (Andy Holyer) (09/22/90)

Guys,
	I run a Gould (Sorry Encore :-( ) PowerNode which is isolated
from other tcp/ip hosts (JANET uses X25, even our local network uses
it). Recently I've been trying to get some software to go which falls
over apparently due to a call to gethostbyname() returning NULL. Fair
enough, so I wrote a little noddy program to do a gethostbyname() and
tell me what h_errno returned, so I've got an idea what's wrong.
Except h_errno is set to 0. That's not one of the legal error values. 
gethostent() works fine, returns a perfectly respectable hostent* for
the one legal line in /etc/hosts, but the call to gethostbyname()
still folds. Any ideas? Which FM should I have R'ed?

Oh, yes I'm running UTX-32 V2.1.

-------------------------
Andy Holyer                                  and@uk.ac.lon.rfhsm.ux
Dept. of Medical Informatics and Computing,  ...!ukc!r-free!and
Royal Free Hospital School of Medicine,
Rowland Hill St. London NW3
(+44) 1 794 8673
Disclaimer: The above views were written by automatic writing by Elvis
from his hacienda on Mars....