Skip to content

Commit

Permalink
Fixing rhost query so it returns the rdata, not the rrset (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcpsec committed Apr 26, 2015
1 parent 3a89648 commit 94feb29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winnower.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def enrich_IPv4(address, dnsdb=None, hostname=None):
country = geo_data.country_code_by_addr('%s' % address)
if dnsdb:
inaddr = address.reverse_dns
rhost = maxhits(dnsdb.query_rrset('%s' % inaddr))
rhost = maxhits_rdata(dnsdb.query_rrset('%s' % inaddr))
else:
rhost = None
return (as_num, as_name, country, hostname, rhost)
Expand Down

0 comments on commit 94feb29

Please sign in to comment.