dnsdist also has the :func:`setACL` function that accepts a list of netmasks and resets the ACL to that list:
-
.. code-block:: lua
setACL({'192.0.2.0/25', '2001:db8:15::bea/64'})
To set the ACL from a file containing a list of netmasks, use :func:`setACLFromFile`:
.. code-block:: lua
+
setACLFromFile('/etc/dnsdist/query.acl')
Added the optional parameter ``options``.
.. versionchanged:: 1.6.0
- Up to 1.6.0, the syntax for this function was ``SpoofAction(ips[, ip[, options]]).
+ Up to 1.6.0, the syntax for this function was ``SpoofAction(ips[, ip[, options]])``.
Forge a response with the specified IPv4 (for an A query) or IPv6 (for an AAAA) addresses.
If you specify multiple addresses, all that match the query type (A, AAAA or ANY) will get spoofed in.