#!/usr/bin/perl
use strict;
use Math::BigInt;
my $binstring = join '', map { sprintf "%08b", $_ } split /\./, $ARGV[0];
my $decstring = Math::BigInt->new(0);
my $exp = length($binstring);
foreach my $i (1 .. $exp) {
$decstring += substr($binstring, $i-1, 1) * (2 ** ($exp - $i));
}
(my $result = `nslookup $decstring`) =~ m/Name: *(.*)/;
print "http://$decstring would bring you to $1\n";
from the archives 0 Comments More | Login | Reply /