in reply to Re: Re: Handling output from nslookup and ping.in thread Handling output from nslookup and ping
If all he needs is to resolve "hostname", gethostbyname() should work, comes with Perl, and may be faster.