Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

geoipupdate(1) [linux man page]

GEOIPUPDATE(1)						      General Commands Manual						    GEOIPUPDATE(1)

NAME
geoipupdate - a program for updating the MaxMind GeoIP databases SYNOPSIS
geoipupdate [-v] [-f licensefile] DESCRIPTION
geoipupdate automatically updates the GeoIP database for GeoIP subscribers. It connects to the MaxMind GeoIP Update server and checks for an updated database. If it finds an updated database, then it downloads it, uncompresses it, and installs it. If you are running a fire- wall, it requires that the DNS and HTTP (80) ports be open. For example geoipupdate -v Performs the update in verbose mode. OPTIONS
-v Verbose mode, prints out the steps that geoipupdate takes. -d Specify a custom directory target to install the GeoIP datafile(s). By default geoipupdate installs to /usr/local/share/GeoIP -f Specifies the configuration file that contains the license key. Defaults to /usr/local/etc/GeoIP.conf USAGE
Typically you'll want to write a weekly crontab that will run geoipupdate. Below is a sample crontab that runs geoipupdate on each Wednes- day at noon: # top of crontab MAILTO=your@email.com 0 12 * * 3 BIN_DIR/geoipupdate # end of crontab RETURN CODES
geoipupdate returns 0 on success, 1 on error. FILES
/usr/local/etc/GeoIP.conf Configuration file for GeoIP, should contain license key. AUTHOR
Written by T.J. Mather REPORTING BUGS
Report bugs to <support@maxmind.com> COPYRIGHT
Copyright (C) 2006 MaxMind LLC This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. SEE ALSO
Visit <http://www.maxmind.com/app/products> to sign up for a GeoIP subscription. geoiplookup(1), crontab(5) 4th Berkeley Distribution 14 May 2006 GEOIPUPDATE(1)

Check Out this Related Man Page

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.16.2 2006-04-06 IP::Country::MaxMind(3)
Man Page