public String dnsResolve(String host){
  try {
    InetAddress ina=InetAddress.getByName(host);
    return ina.getHostAddress();
  }
 catch (  UnknownHostException e) {
    Logger.log(JavaxPacScriptParser.class,LogLevel.DEBUG,"DNS name not resolvable {0}.",host);
  }
  return "";
}

public String dnsResolve ( String host ) { try { InetAddress ina = InetAddress . getByName ( host ) ; return ina . getHostAddress ( ) ; } catch ( UnknownHostException e ) { Logger . log ( JavaxPacScriptParser . class , LogLevel . DEBUG , "DNS name not resolvable {0}." , host ) ; } return "" ; }
resolves the given dns host name into an ip address , and returns it in the dot separated format as a string .
