Skip to content
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

dnsdist: Add Lua bindings to look up domain and IP addresses from the cache #12007

Merged
merged 4 commits into from
Sep 28, 2022

Conversation

rgacogne
Copy link
Member

Short description

This PR adds Lua (FFI and non-FFI) bindings to:

  • check if a given domain is present in the cache, and if so get the corresponding IP addresses of A and AAAA records present in the answer section of entries for that domain ;
  • check if there are answers in the cache containing an A (or AAAA for IPv6) record corresponding to a given address, and if so get the list of the requested domains that led to these answers.

This can be used for threat intelligence.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • compiled this code
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@rgacogne rgacogne merged commit 697ed70 into PowerDNS:master Sep 28, 2022
@rgacogne rgacogne deleted the ddist-cache-inspection branch September 28, 2022 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants