[dnsdist] Add ECS to response

Casey Deccio casey at deccio.net
Thu Jul 4 07:55:01 UTC 2019


Hi Remi,

> On Jul 4, 2019, at 1:49 AM, Remi Gacogne <remi.gacogne at powerdns.com> wrote:
> 
> On 7/3/19 6:47 PM, Casey Deccio wrote:
>> I'm wondering if it is possible to add an arbitrary ECS value to a
>> response.  I've poked around through the docs, but it wasn't
>> immediately clear how that might be done.  I did try:
>> 
>> addResponseAction(AllRule(), SetECSAction('0.0.0.0/0', '::/0'))
>> 
>> But SetECSAction() is only for queries, not responses.
> 
> I'm afraid there currently is no way to add ECS to a response in
> dnsdist.

No worries.  Thanks for following up.

> I'm not sure it would be a good idea, though, I believe it's
> something that only the backend should do.

Oh, I suppose it all depends on what you're trying to accomplish :). I think I've found another way to accomplish what I needed.  Thanks!

Thanks!
Casey


More information about the dnsdist mailing list