Skip to content

Commit

Permalink
Merge branch 'feature/report_creations_are_scheduled' of github.com:m…
Browse files Browse the repository at this point in the history
…invws/nl-kat-coordination into feature/report_creations_are_scheduled
  • Loading branch information
Rieven committed Jan 10, 2025
2 parents 539be48 + 889232e commit f65461a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boefjes/boefjes/plugins/kat_dns/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ def get_parent_zone_soa(resolver: dns.resolver.Resolver, name: Name) -> Answer:
def get_email_security_records(resolver: dns.resolver.Resolver, hostname: str, record_subdomain: str) -> str:
try:
answer = resolver.resolve(f"{record_subdomain}.{hostname}", "TXT", raise_on_no_answer=False)
if answer.rrset is None:
return "NXDOMAIN"
return answer.response.to_text()
except dns.resolver.NoNameservers as error:
# no servers responded happily, we'll check the response from the first
Expand Down

0 comments on commit f65461a

Please sign in to comment.