Raising exception if dns not resolved for statsd host