Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for AXFR query #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RobertoBochet
Copy link

What changed

  • Module now supports AXFR query

@@ -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
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.

Copy link

@hardeaux hardeaux left a comment

Choose a reason for hiding this comment

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

I like it - exactly what I needed.. Bummed the response comes back with mixed spaces and tabs, but a .split() takes care of it lickity-split!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants