code: public DnsNameResolverBuilder copy() {
          DnsNameResolverBuilder copiedBuilder = new DnsNameResolverBuilder();
  
          if (eventLoop != null) {
              copiedBuilder.eventLoop(eventLoop);
          }
  
          if (channelFactory != null) {
              copiedBuilder.channelFactory(channelFactory);
          }
  
          if (resolveCache != null) {
              copiedBuilder.resolveCache(resolveCache);
          }
  
          if (cnameCache != null) {
              copiedBuilder.cnameCache(cnameCache);
          }
          if (maxTtl != null && minTtl != null) {
              copiedBuilder.ttl(minTtl, maxTtl);
          }
  
          if (negativeTtl != null) {
              copiedBuilder.negativeTtl(negativeTtl);
          }
  
          if (authoritativeDnsServerCache != null) {
              copiedBuilder.authoritativeDnsServerCache(authoritativeDnsServerCache);
          }
  
          if (dnsQueryLifecycleObserverFactory != null) {
              copiedBuilder.dnsQueryLifecycleObserverFactory(dnsQueryLifecycleObserverFactory);
          }
  
          copiedBuilder.queryTimeoutMillis(queryTimeoutMillis);
          copiedBuilder.resolvedAddressTypes(resolvedAddressTypes);
          copiedBuilder.recursionDesired(recursionDesired);
          copiedBuilder.maxQueriesPerResolve(maxQueriesPerResolve);
          copiedBuilder.traceEnabled(traceEnabled);
          copiedBuilder.maxPayloadSize(maxPayloadSize);
          copiedBuilder.optResourceEnabled(optResourceEnabled);
          copiedBuilder.hostsFileEntriesResolver(hostsFileEntriesResolver);
  
          if (dnsServerAddressStreamProvider != null) {
              copiedBuilder.nameServerProvider(dnsServerAddressStreamProvider);
          }
  
          if (searchDomains != null) {
              copiedBuilder.searchDomains(Arrays.asList(searchDomains));
          }
  
          copiedBuilder.ndots(ndots);
          copiedBuilder.decodeIdn(decodeIdn);
  
          return copiedBuilder;
      }
docs: Creates a copy of this {@link DnsNameResolverBuilder}
  
  @return {@link DnsNameResolverBuilder}