test: Configurable dns resolver for net.connect