Commit dea87430 authored by Vladimír Čunát's avatar Vladimír Čunát

Revert "iterator: don't retry if REFUSED"

This reverts commit bc2a2670 (almost).
It would be best to avoid retrying with the same NS and keep trying with
others (if any), but that would require larger changes if it should work
well, so let's err on the side of sending more queries.
parent 0cd00388
......@@ -13,6 +13,8 @@ Improvements
- allow answering from cache in non-iterative modes (#122)
- command line: specify ports via @ but still support # for compatibility
- policy: recognize 100.64.0.0/10 as local addresses
- layer/iterate: *do* retry repeatedly if REFUSED, as we can't yet easily
retry with other NSs while avoiding retrying with those who REFUSED
Knot Resolver 1.2.6 (2017-04-24)
......
......@@ -905,6 +905,7 @@ static int resolve(kr_layer_t *ctx, knot_pkt_t *pkt)
case KNOT_RCODE_NOERROR:
case KNOT_RCODE_NXDOMAIN:
break; /* OK */
case KNOT_RCODE_REFUSED:
case KNOT_RCODE_SERVFAIL: {
if (query->flags & QUERY_STUB) { break; } /* Pass through in stub mode */
VERBOSE_MSG("<= rcode: %s\n", rcode ? rcode->name : "??");
......@@ -917,7 +918,6 @@ static int resolve(kr_layer_t *ctx, knot_pkt_t *pkt)
return KR_STATE_CONSUME;
}
}
case KNOT_RCODE_REFUSED:
case KNOT_RCODE_FORMERR:
case KNOT_RCODE_NOTIMPL:
VERBOSE_MSG("<= rcode: %s\n", rcode ? rcode->name : "??");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment