IP <-> Country database at LUDOST.NET

This page and the related databases were started by Boyan Krosnov, and now are maintained by Boyan Krosnov and Vasil Kolev. Questions, comments, suggestions should be addressed to ip[at]ludost.net
Proudly hosted on marla.ludost.net
Data collected from some IETF RFCs and drafts, IANA, RIPE NCC ,ARIN,APNIC, LACNIC, AfriNIC and possibly others. Click here for a full list of sources

THIS SERVICE IS PROVIDED AS IS. USE AT YOUR OWN RISK!

RAW Data and Templates

You can download the raw data files from here:
IP address distribution by country (updated daily) (~600 KB gzip): country.db.gz
Special Use and Bogon addresses (updated on change) (8 KB txt): special.txt
Templates used to generate the outputs in various formats: templates

These files are in ipgetintervals.pm and ipformat.pm formats. You may need the modules (which are goint to be released under the GPL some day) to use them.

Query the database

Use data source "country.db"? This permits you to select countries in the input field below. Last update: Thu Apr 17 02:13:57 2014 UTC
  • Input a list of ISO country codes separated by spaces in this field e.g. KR
    country codes currently found in the database are: ad ae af ag ai al am an ao aq ar as at au aw ax az ba bb bd be bf bg bh bi bj bl bm bn bo bq br bs bt bv bw by bz ca cc cd cf cg ch ci ck cl cm cn co cr cs cu cv cw cx cy cz de dj dk dm do dz ec ee eg eh er es et eu fi fj fk fm fo fr ga gb gd ge gf gg gh gi gl gm gn gp gq gr gs gt gu gw gy hk hm hn hr ht hu id ie il im in io iq ir is it je jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md me mf mg mh mk ml mm mn mo mp mq mr ms mt mu mv mw mx my mz na nc ne nf ng ni nl no np nr nu nz om pa pe pf pg ph pk pl pm pn pr ps pt pw py qa re ro rs ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr ss st sv sx sy sz tc td tf tg th tj tk tl tm tn to tr tt tv tw tz ua ug um us uy uz va vc ve vg vi vn vu wf ws ye yt yu za zm zw zz
Use data source "special"? This permits you to select 'special' addresses from the list below
  • ASBorderFilter typical ingress AS border filter for multicast speaking ASs
  • ASBorderFilterMulticast typical ingress AS border filter for non multicast speaking ASs
  • Local local addresses
    • LocalThisNet 0/8
    • LocalLoopback 127/8
    • LocalLinkLocal 169.254/16
    • LocalBroadcast 255/8
  • Private RFC1918 addresses
    • Private8 10/8
    • Private12 172.16/12
    • Private16 192.168/16
  • SpecialBogon special bogons
    • SpecialTestNet 192.0.2/24
    • SpecialNextStepDefault 192.42.172/24
  • SpecialUse anycasted special use addresses, not to be filtered
    • Special6to4 192.88.99/24
    • SpecialAS112 192.175.48/24
  • ClosedNet the largest closed networks with assigned internet address space
    • ClosedNetBMWG 198.18/15
    • ClosedNetPDN 14/8
  • Multicast 224/4 multicast address space
  • Reserved addresses reserved for future use
    • ReservedSpecial special reserved addresses comming from the classful history burden of IPv4
      • ReservedClassBoundary 128.0/16 191.255/16 192.0.0/24 223.255.255/24
      • ReservedClassE 240/4
    • ReservedUnassigned address space which is usable but not yet assigned to RIRs, per /8
Select template for formating the output of your query
mask dotted decimal mask
ciscomask dotted decimal inverted mask (cisco style)
prefix prefix length
interval RIPEDB alike intervals

iptables-j-src netfilter/iptables chain matching by source with a -j TARGET rule (uses NAME, TARGET and DEFAULT)
iptables-j-dst netfilter/iptables chain matching by destination with a -j TARGET rule (uses NAME, TARGET and DEFAULT)
iptables-src netfilter/iptables chain matching by source for accounting purposes (uses NAME and DEFAULT)
iptables-dst netfilter/iptables chain matching by destination for accounting purposes (uses NAME and DEFAULT)

ipfw-src ipfw matching by source (uses TARGET)
ipfw-dst ipfw matching by destination (uses TARGET)

cisco-ext-modular-src Cisco extended access-list, modular CLI format, matching by source (uses NAME, TARGET and DEFAULT)
cisco-ext-modular-dst Cisco extended access-list, modular CLI format, matching by destination (uses NAME, TARGET and DEFAULT)
cisco-ext-line-src Cisco extended access-list, per-line CLI format, matching by source (uses NAME, TARGET and DEFAULT)
cisco-ext-line-dst Cisco extended access-list, per-line CLI format, matching by destination (uses NAME, TARGET and DEFAULT)

apache-allow Apache ACL, permitting traffic
apache-deny Apache ACL, denying traffic

NAME: name of the access-list or chain, e.g. bogons
TARGET: name of the target for matching packets e.g. permit
DEFAULT: name of the target for non-matching packets e.g. deny. Optional.