Skip to content

dns.query.inbound_xfr #825

Answered by rthalley
junkb asked this question in Q&A
Discussion options

You must be logged in to vote

It updates the zone object you gave it, so just use the zone object's various interfaces to get at the data. For example, here's printing the zone:

z = dns.zone.Zone("example")
dns.query.inbound_xfr("127.0.0.1", z)
for n in sorted(z.nodes.keys()):
print(z[n].to_text(n))

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rthalley
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants