see perldoc -f gethostbyname
In reply to Re: How to find IP address from hostname? by busunsl in thread How to find IP address from hostname? by Anonymous Monk