From: john@iastate.edu (John Hascall)
Subject: Re: gethostbyname
Date: 1997/01/03 [thread overview]
Message-ID: <5ajkka$bfu@news.iastate.edu> (raw)
In-Reply-To: 32CC1643.41C6@watson.ibm.com
In article <32CC1643.41C6@watson.ibm.com>,
Austel Paula K <paula@watson.ibm.com> wrote:
}I'm calling gethostbyname in a test program that works on other unix
}systems and fails on dec osf. If I give gethostbyname an ip address
}with dots in it I get HOST_NOT_FOUND. I can ping this ip address
}from my dec machine. Any ideas.
The general strategy is to call
inet_addr()
first and if that fails, then call
gethostbyname()
John
--
John Hascall, Software Engr. Shut up, be happy. The conveniences you
ISU Computation Center demanded are now mandatory. -Jello Biafra
mailto:john@iastate.edu
http://www.cc.iastate.edu/staff/systems/john/welcome.html <-- the usual crud
prev parent reply other threads:[~1997-01-03 5:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-02 5:00 gethostbyname Austel Paula K
1997-01-02 5:00 ` gethostbyname Steve Jones
1997-01-03 5:00 ` John Hascall [this message]
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