public String toStringWithoutDomain() {
    String hostname = getHostName();
    List<String> parts = Splitter.on('.').splitToList(hostname);
    if (parts.size() > 1) {
      Iterator<String> i = parts.iterator();
      String base = i.next();
      while (i.hasNext()) {
        String part = i.next();
        if (!StringUtils.isNumeric(part)) {
          return Address.fromParts(base, getPort()).toString();
        }
      }
    }
    return toString();
  }
If hostname is a.b.c and the port is 123, return a:123 instead of a.b.c:123.
@return if host looks like it is resolved -- not an IP -- then strip the domain portion
        otherwise returns same as {@link #toString()}}
hbase-common/src/main/java/org/apache/hadoop/hbase/net/Address.java