private static String stripTrailingDot(String name) {
        if (name.endsWith(".")) {
            return name.substring(0, name.length() - 1);
        } else {
            return name;
        }
    }
Returns a new {@link DnsServiceEndpointGroupBuilder} with the specified hostname.

@param hostname the hostname to query DNS queries for
core/src/main/java/com/linecorp/armeria/client/endpoint/dns/DnsServiceEndpointGroup.java