i want to know how some sites and some softwares give information from a given ip address??

i mean does it have a specific algorithm?


All the information about who owns what IP who it's registered to, is stored in databases.

IANA assign the IPs to RIRs(regional internet registrars), there's one called ARIN covers america, one called RIPE covers europe.. one for africa e.t.c. they each have databases.

Any website or command or GUI that looks up the IP and gets information about ownership, does a whois, on the database of one of those RIRs.

If you want details of how to access a RIR's database as a programmer, then stackoverflow would be a better place to ask. But as far as the methodology.. no complex algorithm, just returning information from a (RIR's) database.


Run the command "whois":

> whois <ipaddress>

There are online whois tools, and gui apps for it, as well.

The protocol that whois uses is documented in RFCs, of course. See:

  • i want to know how they do this work – Arash Aug 14 '11 at 18:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.