1

I want to get a list of all registered Domains for a given IP Address . Could I use PTR records. I tried the following

ip = "217.13.68.220";
l = new Lookup(ip, Type.PTR );
l.setResolver(new SimpleResolver("8.8.8.8"));
l.run();

This IP should be resolved to zeit.de but the lookup returns:

host_not_found

Andrea
  • 11,801
  • 17
  • 65
  • 72
Aloras
  • 23
  • 5

1 Answers1

0

For an IPV4 address, you need to

  1. Reverse the octets
  2. Append the in-addr.arpa domain

So, in your case, you should pass "220.68.13.217.in-addr.arpa." to the resolver.

schtever
  • 3,210
  • 16
  • 25