From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8690e09dd7793f5a,start X-Google-Attributes: gidfee84,public From: "Craig L. Ching" Subject: Host resolution on Tru64 Unix Date: 2000/04/11 Message-ID: #1/1 X-Deja-AN: 609676779 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Trace: news.uswest.net 955465960 63.225.150.45 (Tue, 11 Apr 2000 10:12:40 CDT) X-MSMail-Priority: Normal NNTP-Posting-Date: Tue, 11 Apr 2000 10:12:40 CDT Newsgroups: comp.unix.osf.osf1 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