You could do it, but the code would be complex, slow and it is most likely illegal. Do you know the address of your DNS server? There might be a better way to do this directly. Of course, if it's your DNS server that's the proble, the results won't be any better.