Skip to content

Commit

Permalink
Merge pull request darkoperator#161 from kramse/master
Browse files Browse the repository at this point in the history
Quick and dirty add DMARC
  • Loading branch information
L1ghtn1ng committed Feb 3, 2021
2 parents 760857d + 236bdec commit f840481
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/dnshelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,10 @@ def get_txt(self, target=None):
for rdata in answers:
string = bytes.join(b'', rdata.strings).decode('utf-8')
txt_record.append(['TXT', target, string])
answers = self._res.query("_dmarc." + target, 'TXT', tcp=tcp)
for rdata in answers:
string = bytes.join(b'', rdata.strings).decode('utf-8')
txt_record.append(['TXT', target, string])
except Exception:
return []

Expand Down

0 comments on commit f840481

Please sign in to comment.