static uint16_t s_minUdpSourcePort;
static uint16_t s_maxUdpSourcePort;
static double s_balancingFactor;
-static bool s_addExtendedDNSErrors;
+static bool s_addExtendedResolutionDNSErrors;
RecursorControlChannel s_rcc; // only active in the handler thread
RecursorStats g_stats;
if (haveEDNS) {
auto state = sr.getValidationState();
- if (s_addExtendedDNSErrors && (dc->d_extendedErrorCode || vStateIsBogus(state))) {
+ if (dc->d_extendedErrorCode || (s_addExtendedResolutionDNSErrors && vStateIsBogus(state))) {
EDNSExtendedError::code code;
std::string extra;
g_statisticsInterval = ::arg().asNum("statistics-interval");
- s_addExtendedDNSErrors = ::arg().mustDo("extended-errors");
+ s_addExtendedResolutionDNSErrors = ::arg().mustDo("extended-resolution-errors");
{
SuffixMatchNode dontThrottleNames;
::arg().set("unique-response-pb-tag", "If protobuf is configured, the tag to use for messages containing unique DNS responses. Defaults to 'pdns-udr'")="pdns-udr";
#endif /* NOD_ENABLED */
- ::arg().setSwitch("extended-errors", "If set, send the EDNS Extended Error extension on DNSSEC validation failures")="no";
+ ::arg().setSwitch("extended-resolution-errors", "If set, send an EDNS Extended Error extension on resolution failures, like DNSSEC validation errors")="no";
::arg().setCmd("help","Provide a helpful message");
::arg().setCmd("version","Print version string");
So an entry called 'pc' with ``export-etc-hosts-search-suffix='home.com'`` will lead to the generation of 'pc.home.com' within the recursor.
An entry called 'server1.home' will be stored as 'server1.home', regardless of this setting.
-.. _setting-extended-errors:
+.. _setting-extended-resolution-errors:
-``extended-errors``
--------------------
+``extended-resolution-errors``
+------------------------------
.. versionadded:: 4.5.0
- Boolean
- Default: no
-If set, the recursor will add an EDNS Extended Error (:rfc:`8914`) to responses failing DNSSEC validation, explaining the failure. Enabling this setting will also allow setting custom error codes from Lua or from a RPZ hit.
+If set, the recursor will add an EDNS Extended Error (:rfc:`8914`) to responses when resolution failed, like DNSSEC validation errors, explaining the reason it failed. This setting is not needed to allow setting custom error codes from Lua or from a RPZ hit.
.. _setting-forward-zones: