Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Host resolution on Tru64 Unix
@ 2000-04-11  4:00 Craig L. Ching
  0 siblings, 0 replies; only message in thread
From: Craig L. Ching @ 2000-04-11  4:00 UTC (permalink / raw)


Hi!

I've got a problem with host resolution on Tru64 Unix.  It's the strangest
thing!  We have a computer, call it 'A'.  From 'A' I can ping 'A' using the
hostname 'A', but I can't FTP to 'A' from 'A'.  We add 'A' to the hosts file
and then FTP works fine!  I haven't looked at how ping is spec'd, but I
would've assumed that it uses gethostbyname() etc. like everything else.
The reason I ask this is that we have an application that uses
gethostbyname() to resolve the local address and make a connection on the
local machine.  gethostbyname() is failing with errno set to HOST_NOT_FOUND.
At first I had the customer ping the machine name, but ping worked.  Then,
being more familiar with the internals of FTP, I had the customer FTP the
local machine name and they got the same error as our application.  Putting
the hostname in the hosts file (which is ok for this customer, since they
use static IP addresses) resolves all the issues, but I'm still curious
about what could be wrong here.  Any suggestions?

Thanks,
Craig





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-11  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-11  4:00 Host resolution on Tru64 Unix Craig L. Ching

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox