Take the 2-minute tour ×  For example, given the range: -  I
need to find some domain that resolves to an IP-adress within
the range. Is it possible ? I'm using a Linux system.
share|improve this question  4 Answers 4  up vote 3 down vote
accepted  You can do reverse lookups on each IP in the range and
search through the results for the domain you're looking for.
However, this will only work if the person/s responsible for
that domain created a PTR record for the IP.  This is a quick
and dirty working example:  #!/usr/bin/env python ipAddrRange
function ripped from:  import sys import socket  def
ipAddrRange(startAddr, endAddr):     def incrAddr(addrList):
addrList[3] += 1         for i in (3,2,1):             if
addrList[i] == 256:                 addrList[i] = 0
addrList[i-1] += 1     def asString(addrList):         return
".".join(map(str,addrList))     startAddrList =
map(int,startAddr.split("."))     endAddrList =
map(int,endAddr.split("."))     curAddrList = startAddrList[:]