Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pydig/query_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class QueryType(Enum):
DNSKEY = 48
CDS = 59
CDNSKEY = 60
AXFR = 252
CAA = 257

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion pydig/resolver.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def _args(self, domain, query_type):
yield query_type.name

# We only care about the result
yield '+short'
yield from ('+noall', '+answer') if query_type == query_type.AXFR else ('+short',)
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AXFR is not a DNS entry, it is a kind of DNS query aims to extract all the DNS entries of a DNS zone, for this reason the dig output is useless without the DNS entry type. So I decided to return the full entry and not the short version.

This chose is thought in order to maintain the retro compatibility with last version. In a second moment I suggest to redefine the output schema of the library.


# Add in any additional args
yield from self.additional_args
Expand Down