Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Make a distinction between "ordinary" negcache results and entire nam…
…e results.
  • Loading branch information
omoerbeek committed Jan 3, 2023
commit 79cc1d60fcb0b8de2375557ed963d266625e87f5
10 changes: 6 additions & 4 deletions pdns/recursordist/syncres.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2822,13 +2822,15 @@ bool SyncRes::doCacheCheck(const DNSName& qname, const DNSName& authname, bool w
if (ne.d_qtype.getCode()) {
LOG(prefix << qname << ": " << qtype << " is negatively cached via '" << ne.d_auth << "' for another " << sttl << " seconds" << endl);
res = RCode::NoError;
if (s_addExtendedResolutionDNSErrors) {
context.extendedError = EDNSExtendedError{0, "Result from negative cache"};
}
}
else {
LOG(prefix << qname << ": Entire name '" << qname << "' is negatively cached via '" << ne.d_auth << "' for another " << sttl << " seconds" << endl);
}
if (s_addExtendedResolutionDNSErrors) {
// XXX Do we want this?
context.extendedError = EDNSExtendedError{0, "Result from negative cache"};
if (s_addExtendedResolutionDNSErrors) {
context.extendedError = EDNSExtendedError{0, "Result from negative cache for entire name"};
}
}
}
}
Expand Down