]> git.ipfire.org Git - thirdparty/pdns.git/commit
Patch 5: support setting NSID option (SNA-20345)
authorSamir Aguiar <sjorgedeaguiar@netskope.com>
Sat, 17 May 2025 19:40:09 +0000 (19:40 +0000)
committerSamir Aguiar <sjorgedeaguiar@netskope.com>
Thu, 5 Jun 2025 14:40:08 +0000 (14:40 +0000)
commit700b14b956b196233000a6ff62c76b81f9deb26b
tree220dfe43a362210007e0305b7cd1419871b03b45
parent155f6afe60e97ae53a143521ffe7b62b91d62811
Patch 5: support setting NSID option (SNA-20345)

To ease debugging behind anycast, add support to dnsdist for
returning an identifier of the POP that is handling the request.

This commit introduces a new ``SetEDNSOptionResponseAction``
action that works similarly to ``SetEDNSOptionAction``, but that
can be used for responses.

Example:
addResponseAction(
    EDNSOptionRule(EDNSOptionCode.NSID),
    SetEDNSOptionResponseAction(EDNSOptionCode.NSID, "foobar")
)

In the above, the NSID option will be set when the question has
this bit set. Note that it will override what is sent by the DNS
server.
pdns/dnsdist-lua-actions.cc