Skip to content

Commit

Permalink
log invalid queries received
Browse files Browse the repository at this point in the history
  • Loading branch information
wleightond committed Aug 16, 2023
1 parent 222b7df commit 46c8b5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canarytokens/channel_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def query(self, query: Query, src_ip: str): # noqa C901
try:
query.name.name.decode("ascii")
except UnicodeDecodeError:
log.info(f"non-ascii query received: {query.name.name}")
return defer.fail(error.DomainError())

IS_NX_DOMAIN = any(
Expand Down

0 comments on commit 46c8b5a

Please sign in to comment.