-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better detection of request recursion #3185
Comments
The second option (i.e. LRU cache) have been chosen and implemented in 48b8579. |
The way it's implemented is dangerous. This is completely normal to receive DNS queries with the same ID, DNS clients retransmit the same query when they do not receive the response in N seconds (timeout is implementation-specific). Consider this point: we are only interested in the recursion detection when the query is sent to "Private reverse DNS servers". We are not interested in other cases. |
Merge in DNS/adguard-home from 3185-recursion to master Closes AdguardTeam#3185. Squashed commit of the following: commit 2fa4422 Merge: 7975957 7a48e92 Author: Eugene Burkov <[email protected]> Date: Thu May 27 19:04:44 2021 +0300 Merge branch 'master' into 3185-recursion commit 7975957 Author: Eugene Burkov <[email protected]> Date: Thu May 27 17:36:22 2021 +0300 dnsforward: imp docs commit 1af7131 Author: Eugene Burkov <[email protected]> Date: Thu May 27 17:15:00 2021 +0300 dnsforward: imp code, tests, docs commit f3f9145 Author: Eugene Burkov <[email protected]> Date: Thu May 27 15:45:44 2021 +0300 dnsforward: add recursion detector
Merge in DNS/adguard-home from fix-recursion to master Closes AdguardTeam#3185. Squashed commit of the following: commit c78650b Author: Eugene Burkov <[email protected]> Date: Mon May 31 13:12:46 2021 +0300 all: fix changelog commit e43017a Author: Eugene Burkov <[email protected]> Date: Sun May 30 22:39:05 2021 +0300 dnsforward: reduce recursion ttl commit 79208a8 Author: Eugene Burkov <[email protected]> Date: Sun May 30 22:29:27 2021 +0300 dnsforward: only check recursion for private rdns commit 1b8075b Author: Eugene Burkov <[email protected]> Date: Sun May 30 22:18:11 2021 +0300 dnsforward: rm recursion detecting from upstream
The two mechanisms that were proposed by our dev team are:
I personally think that we should go with option two. @ameshkov, do you have anything to add?
The text was updated successfully, but these errors were encountered: