sb.append(hostname.getHostAddress());
sb.append(hostname);
    public static String shortName(InetAddress hostname) {        if(hostname == null) return null;        StringBuffer sb=new StringBuffer();        if(resolve_dns)            sb.append(hostname.getHostName());        else            sb.append(hostname.getHostAddress());        return sb.toString();    }