Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thank you,if ($machine_name) { my @ip = `nslookup $machine_name`; my $ip = $ip[4]; $ip = (split /: /, $ip, 2)[1]; print "$machine_name:$ip<br>\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to find IP address from hostname?
by busunsl (Vicar) on Mar 21, 2001 at 21:50 UTC | |
|
Re: How to find IP address from hostname?
by kschwab (Vicar) on Mar 21, 2001 at 22:33 UTC | |
|
Re: How to find IP address from hostname?
by tomhukins (Curate) on Mar 21, 2001 at 21:58 UTC |