I'm sorry, but this sounds fishy. You'll need to convince us that this is for an honorable purpose.
As an aside, URLs work on a much higher level in the protocol stack than DNS (which is used to resolve host names like
www.yahoo.com to IP addresses like 69.147.114.210), so you won't be able to extract URL information from DNS queries.