MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / Lookup

Method Lookup

src/main/java/core/org/xbill/DNS/Lookup.java:228–246  ·  view source on GitHub ↗

Create a Lookup object that will find records of the given name, type, and class. The lookup will use the default cache, resolver, and search path, and look for records that are reasonably credible. @param name The name of the desired records @param type The type of the desired records @param dclas

(Name name, int type, int dclass)

Source from the content-addressed store, hash-verified

226 * @see DClass
227 */
228public
229Lookup(Name name, int type, int dclass) {
230 Type.check(type);
231 DClass.check(dclass);
232 if (!Type.isRR(type) && type != Type.ANY)
233 throw new IllegalArgumentException("Cannot query for " +
234 "meta-types other than ANY");
235 this.name = name;
236 this.type = type;
237 this.dclass = dclass;
238 synchronized (Lookup.class) {
239 this.resolver = getDefaultResolver();
240 this.searchPath = getDefaultSearchPath();
241 this.cache = getDefaultCache(dclass);
242 }
243 this.credibility = Credibility.NORMAL;
244 this.verbose = Options.check("verbose");
245 this.result = -1;
246}
247
248/**
249 * Create a Lookup object that will find records of the given name and type

Callers

nothing calls this directly

Calls 8

checkMethod · 0.95
checkMethod · 0.95
isRRMethod · 0.95
getDefaultResolverMethod · 0.95
getDefaultSearchPathMethod · 0.95
getDefaultCacheMethod · 0.95
checkMethod · 0.95
fromStringMethod · 0.95

Tested by

no test coverage detected