Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: DNS Resolution4

by tinman (Curate)
on Apr 25, 2001 at 02:58 UTC ( [id://75309]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #/usr/bin/perl -w
    use strict;
    ...
    my @addresses = gethostbyname($host)   or die "Can't resolve $host: $!
    +\n";
    @addresses = map { inet_ntoa($_) } @addresses[4 .. $#addresses];
    print "The next set is @addresses \n";
    
  2. or download this
    #/usr/bin/perl -w
    use strict;
    ...
    my @addresses = gethostbyname($host)   or die "Can't resolve $name: $!
    +\n";
    @addresses = map { inet_ntoa($_) } @addresses[4 .. $#addresses];
    print "The next set is @addresses \n";
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://75309]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 20:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found