public String leafLabel() {
        int offset = value().indexOf('.');
        return offset == -1 ? value() : value().substring(0, offset);
    }
A valid domain name, which can be used in a {@link java.net.URI}.

@author jonmv
vespajlib/src/main/java/ai/vespa/http/DomainName.java