Skip to content

[dnsdist] How to execute SpoofAction in LuaResponseAction #14795

Answered by rgacogne
KagurazakaNyaa asked this question in Q&A
Discussion options

You must be logged in to vote

So, what I'm suggesting is:

  • do the parsing in a response rule chain, like you are doing today. Restart your query after setting a tag like you are currently doing, ensuring there is a packet cache associated to the pool you are routing the restarted query to ;
  • intercept the restarted query via addCacheMissAction instead of addAction, matching the tag as needed, and there you can call SpoofAction.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@rgacogne
Comment options

@KagurazakaNyaa
Comment options

@rgacogne
Comment options

@rgacogne
Comment options

Answer selected by KagurazakaNyaa
@KagurazakaNyaa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants