@@ -0,0 +1,966 @@
+package de.jeha.kame.crawler.core.httpclient;%0A%0Aimport org.apache.commons.lang3.time.StopWatch;%0Aimport org.apache.http.conn.DnsResolver;%0Aimport org.apache.http.impl.conn.SystemDefaultDnsResolver;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Aimport java.net.InetAddress;%0Aimport java.net.UnknownHostException;%0A%0A/**%0A * @author jenshadlich@googlemail.com%0A */%0Apublic class DefaultDnsResolver implements DnsResolver %7B%0A%0A    private static final Logger LOG = LoggerFactory.getLogger(DefaultDnsResolver.class);%0A%0A    private final DnsResolver dnsResolver = SystemDefaultDnsResolver.INSTANCE;%0A%0A    @Override%0A    public InetAddress%5B%5D resolve(String host) throws UnknownHostException %7B%0A        StopWatch stopWatch = new StopWatch();%0A%0A        stopWatch.start();%0A        InetAddress%5B%5D result = dnsResolver.resolve(host);%0A        stopWatch.stop();%0A%0A        LOG.debug(%22time for dns resolution for '%7B%7D': %7B%7D ms%22, host, stopWatch.getTime());%0A%0A        return result;%0A    %7D%0A%7D%0A

add custom dns resolver that currently only logs the time for dns resolution