So what I\'m trying to do is extract the domain name, e.g. youtube.com, from a dns query using python.
This is the code that I am using to generate my query