protected Record[] lookup(String namestr,int type,String typeDesc) throws TemporaryResolutionException {
  try {
    Lookup l=new Lookup(namestr,type);
    l.setCache(cache);
    l.setResolver(resolver);
    l.setCredibility(dnsCredibility);
    l.setSearchPath(searchPaths);
    Record[] r=l.run();
    try {
      if (l.getResult() == Lookup.TRY_AGAIN) {
        throw new TemporaryResolutionException("DNSService is temporary not reachable");
      }
 else {
        return r;
      }
    }
 catch (    IllegalStateException ise) {
      logger.debug("Error determining result ",ise);
      throw new TemporaryResolutionException("DNSService is temporary not reachable");
    }
  }
 catch (  TextParseException tpe) {
    logger.error("Couldn't parse name " + namestr,tpe);
    return null;
  }
}

protected Record [ ] lookup ( String namestr , int type , String typeDesc ) throws TemporaryResolutionException { try { Lookup l = new Lookup ( namestr , type ) ; l . setCache ( cache ) ; l . setResolver ( resolver ) ; l . setCredibility ( dnsCredibility ) ; l . setSearchPath ( searchPaths ) ; Record [ ] r = l . run ( ) ; try { if ( l . getResult ( ) == Lookup . TRY_AGAIN ) { throw new TemporaryResolutionException ( "DNSService is temporary not reachable" ) ; } else { return r ; } } catch ( IllegalStateException ise ) { logger . debug ( "Error determining result " , ise ) ; throw new TemporaryResolutionException ( "DNSService is temporary not reachable" ) ; } } catch ( TextParseException tpe ) { logger . error ( "Couldn't parse name " + namestr , tpe ) ; return null ; } }
looks up dns records of the specified type for the specified name . < p / > this method is a public wrapper for the private implementation method
