Resolv the hostname in the constructor so as not to spam DNS servers

On a high traffic site, using statsd a lot, it is easy to make multiple DNS queries. This change aims to ensure, at a library level, that your DNS server is well respected.