Use sockets pool for DNS requests.

Inspired by: Vadim Goncharov