Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: "Craig L. Ching" <cching@mqsoftware.com>
Subject: Host resolution on Tru64 Unix
Date: 2000/04/11	[thread overview]
Message-ID: <IhHI4.301$rW5.9523@news.uswest.net> (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





                 reply	other threads:[~2000-04-11  4:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

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