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

Method addCacheNS

src/main/java/core/org/xbill/DNS/jnamed.java:173–184  ·  view source on GitHub ↗
(Message response, Cache cache, Name name)

Source from the content-addressed store, hash-verified

171}
172
173private final void
174addCacheNS(Message response, Cache cache, Name name) {
175 SetResponse sr = cache.lookupRecords(name, Type.NS, Credibility.HINT);
176 if (!sr.isDelegation())
177 return;
178 RRset nsRecords = sr.getNS();
179 Iterator it = nsRecords.rrs();
180 while (it.hasNext()) {
181 Record r = (Record) it.next();
182 response.addRecord(r, Section.AUTHORITY);
183 }
184}
185
186private void
187addGlue(Message response, Name name, int flags) {

Callers 1

addAnswerMethod · 0.95

Calls 7

isDelegationMethod · 0.95
getNSMethod · 0.95
rrsMethod · 0.95
lookupRecordsMethod · 0.80
hasNextMethod · 0.80
nextMethod · 0.80
addRecordMethod · 0.45

Tested by

no test coverage detected