• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 265
  • Last Modified:

All IP numbers within a country

How can I learn the numbers of all the IP net blocks within a country ?

- Urgent -
  • 2
1 Solution
Short answer is you can't, not guaranteed. You can generally find out where a few addresses reside, or even a goodly sized range, but not all the ranges assigned to a country. You might find that some countries have large blocks of numbers assigned, some sequential others not, and some countries only a few, but depending on when and how quickly the country "came onto" the net they may have clean or very messy allocations. There's no master list available to the public that lists the actual allocation. Anti-spam and geographic mapping groups have attempted to map ranges for various purposes but those maps are largely based on derived data with no guarantee of accuracy.

XephyrAuthor Commented:
Very well, I do not wish to have such a guarantee that the information is exactly correct. e.g I just wish to see all recorded IP blocks from New Zealand. No whois search engine supplies this feature (while ripe and such other authorities might supply this info if you send an email telling that you wish to be a mirror, but they are so very reluctant since this information could also be used for spamming and so on).

I have found some lists containing AS (autonomous systems) numbers for each and every service provider on the net with the country information. When I try to query these AS numbers in ripe.net, the system does not return all of the IP numbers and instead put some information about administrative contacts etc. I think I can do this manually but it would take so much time to first query the AS numbers and then query names found in the AS numbers before recording the ip blocks to a file.

So any place on the net that return IP blocks when fed with AS numbers (AS13207 etc, - reference may not exist - ) would resolve my issue. whois.ripe.net does not seem to do it correctly, perhaps another server that queries that ripe.net would do it correctly ?
XephyrAuthor Commented:
Also you can answer the question I point hereby; (packet inspecting firewall with IPtables) if you think you could resolve that problem also


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now