Skip to content

Conversation

RobertoBochet
Copy link

What changed

  • Module now supports AXFR query


# 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