unbound: Add yandex.com to safe search feature

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-06-12 17:11:32 +01:00
parent 043e7aa50f
commit 91056adea5

View File

@@ -733,8 +733,12 @@ write_safe_search_conf() {
done
# Yandex
echo " local-zone: yandex.ru transparent"
echo " local-data: \"yandex.ru A 213.180.193.56\""
for domain in yandex.com yandex.ru; do
echo " local-zone: ${domain} transparent"
for address in $(resolve "familysearch.${domain}"); do
echo " local-data: \"${domain} ${LOCAL_TTL} IN A ${address}\""
done
done
# YouTube
echo " local-zone: youtube.com transparent"