From: Vladimír Čunát Date: Fri, 17 Mar 2017 12:03:55 +0000 (+0100) Subject: view docs: add example matching all addresses X-Git-Tag: v1.3.0~23^2~53^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1da642fa00d85f770879a2e3643601c417e38e10;p=thirdparty%2Fknot-resolver.git view docs: add example matching all addresses This started working since the grandparent commit. Suggested at https://gitter.im/CZ-NIC/knot-resolver?at=58ca5a03f7f7d48104212607 --- diff --git a/modules/view/README.rst b/modules/view/README.rst index 6fd8decd7..f367814af 100644 --- a/modules/view/README.rst +++ b/modules/view/README.rst @@ -40,6 +40,8 @@ Example configuration view:addr('192.168.1.0/24', policy.rpz(policy.PASS, 'whitelist.rpz')) -- Forward all queries from given subnet to proxy view:addr('10.0.0.0/8', policy.all(policy.FORWARD('2001:DB8::1'))) + -- Drop everything that hasn't matched + view:addr('0.0.0.0/0', function (req, qry) return policy.DROP end) Properties ^^^^^^^^^^