final DefaultDnsResolver buildResolver(Consumer<DnsNameResolverBuilder> customizer, EventLoop eventLoop) {
        final DnsNameResolverBuilder resolverBuilder = new DnsNameResolverBuilder(eventLoop);
        customizer.accept(resolverBuilder);
        buildConfigurator(eventLoop.parent()).accept(resolverBuilder);

        return DefaultDnsResolver.of(resolverBuilder.build(), maybeCreateDnsCache(), eventLoop,
                                     searchDomains(), ndots(), queryTimeoutMillis(),
                                     hostsFileEntriesResolver());
    }
Sets the timeout to wait until a successful {@link Endpoint} selection.
{@code 0} disables the timeout.
If unspecified, the default DNS query timeout ({@link DnsUtil#DEFAULT_DNS_QUERY_TIMEOUT_MILLIS} ms) is
used by default.
core/src/main/java/com/linecorp/armeria/client/endpoint/dns/DnsEndpointGroupBuilder.java