diff --git a/CHANGELOG b/CHANGELOG index 28fb994..31c2ea8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -47,6 +47,9 @@ version 2.67 Remove restriction on prefix-length in --auth-zone. Thanks to Toke Hoiland-Jorgensen for suggesting this. + Log when the maximum number of concurrent DNS queries is + reached. Thanks to Marcelo Salhab Brogliato for the patch. + version 2.66 Add the ability to act as an authoritative DNS diff --git a/src/forward.c b/src/forward.c index 33a68a0..6c9f646 100644 --- a/src/forward.c +++ b/src/forward.c @@ -1205,8 +1205,17 @@ struct frec *get_new_frec(time_t now, int *wait) /* none available, calculate time 'till oldest record expires */ if (count > daemon->ftabsize) { + static time_t last_log = 0; + if (oldest && wait) *wait = oldest->time + (time_t)TIMEOUT - now; + + if ((int)difftime(now, last_log) > 5) + { + last_log = now; + my_syslog(LOG_WARNING, _("Maximum number of concurrent DNS queries reached (max: %d)"), daemon->ftabsize); + } + return NULL; }