Skip to content

Commit

Permalink
#183 support domain dataType in name_history service
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromeleonard committed Feb 9, 2018
1 parent a91a980 commit ed289c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion analyzers/DNSDB/DNSDB_NameHistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
"service": "name_history"
},
"description": "Use DNSDB to fetch historical records for a fully-qualified domain name.",
"dataTypeList": ["fqdn"],
"dataTypeList": ["domain","fqdn"],
"command": "DNSDB/dnsdb.py"
}
2 changes: 1 addition & 1 deletion analyzers/DNSDB/dnsdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def execute_dnsdb_service(self, client):
return client.query_rrset(data)
elif self.service == 'ip_history' and self.data_type == 'ip':
return client.query_rdata_ip(data)
elif self.service == 'name_history' and self.data_type == 'fqdn':
elif self.service == 'name_history' and self.data_type in ['domain','fqdn']:
return client.query_rdata_name(data)
else:
self.error('Unknown DNSDB service or invalid data type')
Expand Down

0 comments on commit ed289c2

Please sign in to comment.