wok-next diff bind/receipt @ 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 | 31615bc6828a |
children | ea94058cfe7f |
line diff
1.1 --- a/bind/receipt Fri Jan 24 07:30:06 2014 +0000 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 +}