remove dependency on dnsresolver