in reply to Re: gethostbyname timing out or dns server can't find the host information
in thread gethostbyname timing out or dns server can't find the host information

hmm from http://perldoc.perl.org/perlvar.html

Additionally, if the h_errno variable is supported in C, its value is returned via $? if any gethost*() function fails.

would using $? work? tye also mentioned this value

  • Comment on Re^2: gethostbyname timing out or dns server can't find the host information

Replies are listed 'Best First'.
Re^3: gethostbyname timing out or dns server can't find the host information
by Anonymous Monk on Mar 12, 2013 at 00:50 UTC
    I've no idea, really
    $ perl -MData::Dump -E " gethostbyname(q(blocalhost)); dd $!,int$!,$?, + grep( { $!{$_} } keys %! ) " ("No such host is known.", 11001, 11001)