Skip to content

Commit

Permalink
Merge pull request #1272 from emalderson/fix_SpamhausDBL
Browse files Browse the repository at this point in the history
SpamHausDBL fix: replace query function (not working) with resolve function
  • Loading branch information
nusantara-self authored Sep 18, 2024
2 parents 3720d30 + 701bd4f commit 6a63f27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzers/SpamhausDBL/spamhausdbl.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def summary(self, raw):

def run(self):
try:
lookup = dns.resolver.query(self.observable + '.dbl.spamhaus.org')
lookup = dns.resolver.resolve(self.observable + '.dbl.spamhaus.org')
return_code = str(lookup[0])
# Check return code for result info
# Reference here: https://www.spamhaus.org/faq/section/Spamhaus%20DBL#291
Expand Down

0 comments on commit 6a63f27

Please sign in to comment.