[dnsdist] How get ECS in DnsDist logs ?

Remi Gacogne remi.gacogne at powerdns.com
Tue Oct 1 12:07:01 UTC 2024


On 01/10/2024 13:36, david n via dnsdist wrote:
> My goal was to have a clear view of the percentage of EDNS requests 
> versus no EDNS.

EDNS, or ECS? If you only want to look at percentages, you could create 
custom metrics [1] and increase them from Lua when a rule matches ([2] 
for EDNS, [3] for ECS at first glance). Or, just look at the rule 
counters to know how many queries matched, and then you don't even need 
custom metrics.

[1]: https://dnsdist.org/reference/custommetrics.html
[2]: https://dnsdist.org/reference/selectors.html#EDNSVersionRule
[3]: https://dnsdist.org/reference/selectors.html#EDNSOptionRule

Best regards,
-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20241001/e2bf1702/attachment.sig>


More information about the dnsdist mailing list