Skip to content

Commit

Permalink
Adding checks for SRV records
Browse files Browse the repository at this point in the history
  • Loading branch information
artwaw committed Nov 18, 2020
1 parent 4b33177 commit 71686bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zonetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def detectSubdomains() -> None:
TXTrecords = []
NSrecords = []
CNAMErecords = []
SRVrecords = []
MXrecords = []
subdomains = []
for line in zone_content:
Expand All @@ -142,6 +143,8 @@ def detectSubdomains() -> None:
NSrecords = processList(NSrecords,formQuery(parts[0].strip(),domain))
elif parts[3].strip() == 'CNAME':
CNAMErecords = processList(CNAMErecords,formQuery(parts[0].strip(),domain))
elif parts[3].strip() == 'SRV':
SRVrecords = processList(SRVrecords,formQuery(parts[0].strip(),domain))
elif parts[3].strip() == 'MX':
MXrecords = processList(MXrecords,formQuery(parts[0].strip(),domain))
RTypes = {'A':1, 'A6':38, 'AAAA':28, 'AFSDB':18, 'ANY':255, 'APL':42, 'AVC':258, 'AXFR':252, 'CAA':257, 'CDNSKEY':60, 'CDS':59, 'CERT':37, 'CNAME':5, 'CSYNC':62, 'DHCID':49, 'DLV':32769, 'DNAME':39, 'DNSKEY':48, 'DS':43,
Expand All @@ -160,5 +163,6 @@ def detectSubdomains() -> None:
processSimpleRecord(TXTrecords,'TXT')
processSimpleRecord(CNAMErecords,'CNAME')
processSimpleRecord(MXrecords,'MX')
processSimpleRecord(SRVrecords,'SRV')
processSimpleRecord(NSrecords,'NS')
print("Finished.\n")

0 comments on commit 71686bd

Please sign in to comment.