1

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?

3

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.

1

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:

1
  • 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.