Commit 76a48a2b authored by Marek Vavruša's avatar Marek Vavruša

lib/resolve: accept even bad SBELT servers when bootstrapping

parent 01b7fda7
......@@ -124,6 +124,7 @@ static int ns_resolve_addr(struct kr_query *qry, struct kr_request *param)
if (!next_type && qry->zone_cut.name[0] == '\0') {
DEBUG_MSG("=> fallback to root hints\n");
kr_zonecut_set_sbelt(ctx, &qry->zone_cut);
qry->flags |= QUERY_NO_THROTTLE; /* Pick even bad SBELT servers */
return kr_error(EAGAIN);
}
/* No IPv4 nor IPv6, flag server as unuseable. */
......@@ -513,6 +514,7 @@ int kr_resolve_produce(struct kr_request *request, struct sockaddr **dst, int *t
if (qry->sname[0] == '\0' && qry->stype == KNOT_RRTYPE_DNSKEY) {
DEBUG_MSG("=> priming root DNSKEY\n");
kr_zonecut_set_sbelt(request->ctx, &qry->zone_cut);
qry->flags |= QUERY_NO_THROTTLE; /* Pick even bad SBELT servers */
}
kr_nsrep_elect(qry, request->ctx);
if (qry->ns.score > KR_NS_MAX_SCORE) {
......
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