Catch and repack DNSNameError.

The error returned by the resolver from twisted.names raises an expection
specific to the implementation. It leaks out the interface.