4 While we can pass every packet through the :func:`blockFilter` functions, it is also possible to configure :program:`dnsdist` to only hand off some packets for Lua inspection.
5 If you think Lua is too slow for your query load, or if you are doing heavy processing in Lua, this may make sense.
7 To select specific packets for Lua attention, use :func:`addLuaAction` or :func:`addLuaReponseAction`.
9 A sample configuration could look like this::
12 if(dq.qtype==35) -- NAPTR
14 return DNSAction.Pool, "abuse" -- send to abuse pool
16 return DNSAction.None, "" -- no action
20 addLuaAction(AllRule(), luarule)