How to Solve NameError: name 'DNSQR' is not defined -- scapy

Solution: Import the 'DNSQR' module

To Solve the error, add the following line to the top of your code.

from scapy import DNSQR

 

For more information:
Python scapy DNSQR