Conversation
Track source IP address in an efficient manner to make sure the same cookie will not be sent from different source IP addresses.
joelpurra
added a commit
to joelpurra/getdns-node
that referenced
this pull request
May 13, 2021
- Workaround for breaking change in upstream getdns versions after `getdns` v1.6.0; `GETDNS_RCODE_COOKIE` constant was renamed to `GETDNS_RCODE_BADCOOKIE`. - The renamed constant has not yet been included in an upstream `getdns` released, so this is a preemptive measure. Fixes getdnsapi#38. See - getdnsapi#38 - https://github.com/getdnsapi/getdns - getdnsapi/getdns#471 - getdnsapi/getdns@5c79e2c --- To test using latest `getdns` on Ubuntu 21.04. ```shell sudo apt install libunbound-dev libidn2-dev libssl-dev libevent-dev libuv1-dev libev-dev check git clone 'git@github.com:getdnsapi/getdns.git' cd getdns mkdir build cd build cmake .. make ``` Rebuild `getdns-node` targeting the newly built version (without installing it). ```shell LIBRARY_PATH="/the/path/to/your/getdns/build" CPLUS_INCLUDE_PATH="/the/path/to/your/getdns/build" npm run --silent rebuild ``` Current `getdns` commit on the `develop` branch is `291e0018817269b72c7cbd6c3e531acba95f563f`. - https://github.com/getdnsapi/getdns/tree/develop - getdnsapi/getdns@291e001
This was referenced May 13, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Privacy aware DNS Cookies following directions in: https://tools.ietf.org/html/draft-ietf-dnsop-server-cookies-02.
You can test against
185.49.141.38and2a04:b900:0:100::38which has a resolver that will answer when a valid DNS Cookie was provided.Still TODO before merge, a test package testing the feature.