I see sites such as http://domainsbyip.com/ that allow people to input an IP or domain and it returns other domains hosted on that IP. How do you find this information?

  • 1
    It sounds like you're answering your own question. You go to domainsbyip.com and it'll let you know what other domains share you IP – Nixphoe Aug 4 '11 at 16:58
  • 1
    Yeah because I'm sure that that website is where all people go to find this information. – Rob Aug 4 '11 at 17:03
  • 1
    domainsbyip.com is fairly accurate, though it is far from complete. It misses on quite a few obscure subdomains and smaller websites. I believe that it just runs off of the cache of a few large DNS resolvers. – Hyppy Aug 4 '11 at 17:30

I do not believe there is a 'programmatic' way to find this out. You would basically have to have a huge list of domain names (a lot easier than you might think) and then resolve them all and put that in a table. If you think about it, the only way that these websites would exist would be 1) a DNS A record in some domain, aaaabbbb.ddd.com 2) a virtualhost directive in apache that tells servers what content to serve when asked for a particular domain

Neither one of these methods can easily be found out by external entities.

It's very easy to get lists of domains from server logs, client logs (especially those people that might have spyware), etc.

  • What you say makes sense, but I'm going to hold off and hope someone does somehow have a programmatic way of doing it. I can only imagine how large the database would be to store so many domains in it – Rob Aug 4 '11 at 17:22
  • 5
    Nope. It's this way by design. The domain name resolves to an IP address, and sometimes an IP's PTR can resolve to a usable domain name. PTR is the only authoritative answer that can be provided. Your alternative is to create a huge database of every domain name including subdomains (abc.dude.com is different than dude.com, etc). Oh, and keep it updated, since some TTLs expire fairly quickly. – Hyppy Aug 4 '11 at 17:27
  • Alright, I was hoping there was something more simple, such as gethostbyaddr :( Thanks, though! – Rob Aug 4 '11 at 17:34
  • 1
    +1 Thorough run down – Nixphoe Aug 4 '11 at 17:41

All the top level domain registrars have a database of domain and IP addresses.

Tools like the one linked here purchase these databases and use them.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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