in reply to Convert hostname to decimal form

print unpack('N', scalar gethostbyname($host)), "\n";