/* We enforce a maximum number of query restarts. This is primarily a
* cheap way to prevent CNAME loops. */
- if(iq->query_restart_count > MAX_RESTART_COUNT) {
+ if(iq->query_restart_count > ie->max_query_restarts) {
verbose(VERB_QUERY, "request has exceeded the maximum number"
" of query restarts with %d", iq->query_restart_count);
errinf(qstate, "request has exceeded the maximum number "
lock_basic_type queries_ratelimit_lock;
/** number of queries that have been ratelimited */
size_t num_queries_ratelimited;
+
+ /** max number of query restarts to limit length of CNAME chain */
+ size_t max_query_restarts;
};
/**