# HG changeset patch # User Pascal Bellard # Date 1414403292 -3600 # Node ID 04fd2696b43afb71f3fc2b055be7ec427a3111ef # Parent 07e6ed530a24486476fec67d9c51dde099cd6e61 bind: no amplification attacks diff -r 07e6ed530a24 -r 04fd2696b43a bind/receipt --- a/bind/receipt Mon Oct 27 01:26:15 2014 -0400 +++ b/bind/receipt Mon Oct 27 10:48:12 2014 +0100 @@ -38,3 +38,11 @@ cp -a $stuff/etc $fs } +# Post message when installing. +post_install() +{ + localnets="192.168.0.0/16; 127.0.0.1;" + grep -qs allow-recursion $1/etc/bind/named.conf.options || + sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \ + $1/etc/bind/named.conf.options +}