wok rev 17283
bind: no amplification attacks
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Oct 27 10:48:12 2014 +0100 (2014-10-27) |
parents | 07e6ed530a24 |
children | 93d83d6b247d |
files | bind/receipt |
line diff
1.1 --- a/bind/receipt Mon Oct 27 01:26:15 2014 -0400 1.2 +++ b/bind/receipt Mon Oct 27 10:48:12 2014 +0100 1.3 @@ -38,3 +38,11 @@ 1.4 cp -a $stuff/etc $fs 1.5 } 1.6 1.7 +# Post message when installing. 1.8 +post_install() 1.9 +{ 1.10 + localnets="192.168.0.0/16; 127.0.0.1;" 1.11 + grep -qs allow-recursion $1/etc/bind/named.conf.options || 1.12 + sed -i "s/.*directory.*/\\tallow-recursion { $localnets };\\n&/" \ 1.13 + $1/etc/bind/named.conf.options 1.14 +}