Hey folks, I've been charged with the job of finding out who's been screwing around with the download counts on our site. So now I have this huge list of IP's that I supposed to match to such and such developer.
I was told by one guy that I should just do a traceroute and that'd tell me where... (2 Replies)
I have a script that does a whois lookup that worked fine on a previous server. It used whois with the t option to timeout in 5 seconds. A while back I upgraded to a new server and the script had problems. I found out the new server didn't even have whois. The whois command was symlinked to jwhois... (4 Replies)
Hi guys,
I need a script that given an IP address, say IPA, do the following:
- queries "whois IPA"
- extracts, from the whois answer, the IP network string indicated after the string "route:",
- searches the IP network string in a given text file, say CIDR2ASN.txt, which has several lines,... (1 Reply)
Hello, I was wondering how I can do a whois from a file with lots of ip's in this format
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
0.0.0.0
And so on, then print the whois data from all the ip's to one single file sort of like this "whois -r 'ipfile' > 'whoisfile'"
Thanks in advance!
... (3 Replies)
Hello, do you know any clever way to get information whether certain domain name become avaialble for registration from bash script?
Would be good to check for the availability like every 100miliseconds, i want to catch domain. (1 Reply)
Hi, i want to make linux bash script which will periodically check for certain domain availability, i mean like every 100miliseconds.
I want to ask which command i need to use, so the result is not cached and i dont cause any inappropriate overload?
i see:
whois domainname.com (when No... (1 Reply)
Hi.
I've just made our internal Whois lookup service available for all forum users, not only moderators and admins.
Whois Database
It's basically the same whois info you can get from your command line and many other web sites.
If you would like to see other features, please post in... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT MOJAVE
ip::country::maxmind
IP::Country::MaxMind(3) User Contributed Perl Documentation IP::Country::MaxMind(3)NAME
IP::Country::MaxMind - Look up country by IP Address
SYNOPSIS
use IP::Country::MaxMind;
my $gi = IP::Country::MaxMind->new(GEOIP_STANDARD);
# look up IP address '65.15.30.247'
# returns undef if country is unallocated, or not defined in our database
my $cc1 = $gi->inet_atocc('65.15.30.247');
my $cc2 = $gi->inet_atocc('yahoo.com');
DESCRIPTION
This module adapts the Geo::IP module to use the same interface as the IP::Country modules; thus allowing users to easily switch between
using the two underlying databases.
DATABASE UPDATES
Free monthly updates to the database are available from
http://www.maxmind.com/download/geoip/database/
If you require greater accuracy, MaxMind offers a Premium database on a paid subscription basis.
The author of this module is in no way associated with MaxMind.
CLASS METHODS
$gi = IP::Country::MaxMind->new( $flags );
Constructs a new IP::Country::MaxMind object with the default database located inside your system's datadir, typically
/usr/local/share/GeoIP/GeoIP.dat.
Flags can be set to either GEOIP_STANDARD, or for faster performance (at a cost of using more memory), GEOIP_MEMORY_CACHE. When using
memory cache you can force a reload if the file is updated by setting GEOIP_CHECK_CACHE.
$gi = IP::Country::MaxMind->open( $database_filename, $flags );
Constructs a new Geo::IP object with the database located at $database_filename.
OBJECT METHODS
All object methods are designed to be used in an object-oriented fashion.
$result = $object->foo_method($bar,$baz);
Using the module in a procedural fashion (without the arrow syntax) won't work.
$cc = $gi->inet_atocc(HOSTNAME)
Takes a string giving the name of a host, and translates that to an two-letter country code. Takes arguments of both the 'rtfm.mit.edu'
type and '18.181.0.24'. If the host name cannot be resolved, returns undef. If the resolved IP address is not contained within the
database, returns undef.
$cc = $gi->inet_ntocc(IP_ADDRESS)
Takes a string (an opaque string as returned by Socket::inet_aton()) and translates it into a two-letter country code. If the IP
address is not contained within the database, returns undef.
$cc = $gi->db_time()
Returns zero. For compatibility only.
COPYRIGHT
Copyright (C) 2002,2003 Nigel Wetters Gourlay. All Rights Reserved.
NO WARRANTY. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl v5.18.2 2006-04-06 IP::Country::MaxMind(3)