Skip to content

Commit

Permalink
Check for AAAA record on target by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rbsec committed May 16, 2016
1 parent f2878bf commit 93821d7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions dnscan.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,19 @@ def get_nameservers(target):
except:
return

def get_v6(target):
out.verbose("Getting IPv6 (AAAA) records")
try:
res = lookup(target, "AAAA")
if res:
out.good("IPv6 (AAAA) records found. Try running dnscan with the "+ col.green + "-6 " + col.end + "option.")
for v6 in res:
print(v6)
if outfile:
print(v6, file=outfile)
except:
return

def get_txt(target):
out.verbose("Getting TXT records")
try:
Expand Down Expand Up @@ -269,6 +282,7 @@ def setup():
if args.zonetransfer:
sys.exit(0)

get_v6(target)
get_txt(target)
get_mx(target)
wildcard = get_wildcard(target)
Expand Down

0 comments on commit 93821d7

Please sign in to comment.