my $packed_binary_addr = gethostbyname( 'tyndall.itcarlow.ie' ); my $ip_addr = inet_ntoa( $packed_binary_addr ); print "tyndall's IP address is: $ip_addr\n"; my $ip_name = gethostbyaddr( $packed_binary_addr, AF_INET ); print "$ip_addr has the following name: $ip_name\n";