Skip to content

masayuki0812/ip-country-mapping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generate mappings between IP ranges and countries.

How to use

First of all, initialize module:

$ ./bin/init

Then, you can generate mappings:

$ ./bin/generate

Output

Format:

<start_ip>,<end_ip>,<country_code>,<country_name>

Example:

3.0.0.0,4.255.255.255,US,UNITED STATES
6.0.0.0,9.255.255.255,US,UNITED STATES
11.0.0.0,13.255.255.255,US,UNITED STATES
15.0.0.0,23.15.255.255,US,UNITED STATES
...

Information Sources

This module downloads NIC information from each registries below:

  • ARIN
  • RIPE
  • APNIC
  • LACNIC
  • AFRINIC

And countries information from ISO.

URLs for each information are written in ./conf/url_*

About

Generate mappings between IP ranges and countries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published