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)
| 226 | * @see DClass |
| 227 | */ |
| 228 | public |
| 229 | Lookup(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 |
nothing calls this directly
no test coverage detected