Measure latency of DNS requests