use of org.xbill.DNS.RRset in project opennms by OpenNMS.
the class DNSServer method findExactMatch.
public RRset findExactMatch(final Name name, final int type, final int dclass, final boolean glue) {
final Zone zone = findBestZone(name);
if (zone != null) {
return zone.findExactMatch(name, type);
} else {
final RRset[] rrsets;
final Cache cache = getCache(dclass);
if (glue) {
rrsets = cache.findAnyRecords(name, type);
} else {
rrsets = cache.findRecords(name, type);
}
if (rrsets == null) {
return null;
} else {
return rrsets[0];
/* not quite right */
}
}
}
Aggregations