Dandy Roll
Dandy Roll

Reputation: 21

Python parse DNS response headers

i want to know if there is a way to generate dns queries via python and get the dns responses as well as their headers so as to see things in the dns response as NXDomain, connection refused, server failure etc..

thanks in advance

Upvotes: 2

Views: 2206

Answers (1)

Greg Hewgill
Greg Hewgill

Reputation: 992717

Sure, there is a library called dnspython that does exactly that.

Upvotes: 6

Related Questions