Some DNSs will resolve ANY domain name so I made more reliable errors.
Merge pull request #513 from hintjens/master

Fixed test_connect_resolve