Browse Source

added handling for domain pointers

master
Michael Heidelberger 7 years ago
parent
commit
b6958b41cf
  1. 6
      ip-api.py

6
ip-api.py

@ -36,6 +36,12 @@ def findMX(host):
if re.search('not found', line): if re.search('not found', line):
query_api([host]) query_api([host])
break break
elif re.search('domain name pointer', line):
query_api([host])
extra = re.search('.in-addr.arpa .*',str(line))
thing = line.replace(extra.group(0), '')
query_api([thing.rstrip()])
break
std_out.append(line) std_out.append(line)
p.close p.close

Loading…
Cancel
Save