Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: DNS Resolution4

by KM (Priest)
on Apr 25, 2001 at 21:34 UTC ( #75551=note: print w/replies, xml ) Need Help??

in reply to DNS Resolution4

I use this little script for checking IPs I get in SPAM headers to make sure I email the correct abuse@* addresses:

#!/usr/bin/perl -w use strict; use Socket; my $ip = $ARGV[0] || undef; unless ($ip) { print "What is the IP?\n"; $ip = <STDIN>; chomp $ip; } die "No IP given\n" if !$ip; print "Finding host for $ip...\n"; my $iaddr = inet_aton($ip); my $name = gethostbyaddr($iaddr, AF_INET) || "NO DATA"; print "$ip is $name\n";


Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://75551]
[marto]: trench humour folks, feeling rough.
[marto]: there is never a night when they sleep all the way through, but last night was something else
[marto]: gave in at 3:45 ish and let Charlie watch videos about spitfires, the battle of Britain. He's plane crazy
[1nickt]: marto soothing!
[marto]: Hiromi makes an appearance, let's hope Jools doesn't ruin it by joining in on the old Joanna
[1nickt]: karlgoethebier What is the issue with the semic-colon after the ellipsis? It's documented as proper syntax ...;
[karlgoethebier]: Crazy? What should i say? Son just started his third studies. Next week i have a session with my therapist ;-)
[marto]: and just as I type that, the boys begin playing the piano, the price I pay for using cockney slang :P
[holli]: how did the interview go, marto?

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2017-11-18 18:58 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (277 votes). Check out past polls.