in reply to Where to find Win32::Adminmisc ?
You don't need an external module to just lookup hostnames into IP addresses.
If your hosts only resolve to a single address, you can use the following:
Update: Just to clarify, by "external" module I mean one that's not included in the ActiveState distribution of Perl.#!/usr/bin/perl -w use Socket; my $hostname = "www.perlmonks.com"; my $ipAddress = inet_ntoa(inet_aton($hostname)); print "IP address of $hostname is $ipAddress.\n";
|
|---|