in reply to How to find IP address from hostname?

Use gethostbyname

see perldoc -f gethostbyname