[dnsdist] ComboAddress truncate function?

Brian Sullivan brian.sullivan at lookout.com
Wed Aug 28 15:35:24 UTC 2019

Hi All,

I am trying to use the truncate function associated with the CombAddress

Here is the config:

*-- Any traffic that exceeds max qps will be loggedfunction
rateLimitRule(dq)  dq.remoteaddr:truncate(24)  errlog("Rate Limit Exceeded:
DNSDistRateLimiting "..dq.remoteaddr:toString())  return DNSAction.None,
""endaddAction(MaxQPSIPRule(10, 24, 48), LuaAction(rateLimitRule))*

Unfortunately I see the following output:

*dnsdist[882]: Rate Limit Exceeded: DNSDistRateLimiting*

I know this must work so I must be doing something wrong.


Brian M. Sullivan
Senior Staff Security Intelligence Engineer
bsullivan at lookout.com |  www.lookout.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20190828/a6f3ea4a/attachment.htm>

More information about the dnsdist mailing list