in reply to gethostbyname timing out or dns server can't find the host information
tye has answered this for me on chatterbox
checking the value of $!, which is the errno, can be used to differentiate this. Thanks tye!