Made it possible to access UDP-socket in order to trap errors. Added test.

This patch allows library users to trap and handle errors on UDP socket level for instance the infamous ENOTFOUND that might happen if the computer loses connection to DNS-server (or internet).

Test added do demonstrate and trap real DNS error.