Enable option to cache DNS lookup once

Caching the dns lookup leads to significant throughput gains for
non-ip hostnames.
Merge pull request #28 from CodeFridge/feature/dns_cache

Enable option to cache DNS lookup once