Details |
Last modification |
View Log
Rev |
Author |
Line No. |
Line |
3256 |
rexy |
1 |
#! /bin/bash
|
|
|
2 |
# Unbound DNS Safe Search config entries for ALCASAR
|
|
|
3 |
# main list : https://gist.github.com/johannrichard/a645b32c75646b1f56813b517eb6cc8b
|
|
|
4 |
# Modifications made for ALCASAR :
|
|
|
5 |
# - remove all "IN ADDR" resolutions
|
|
|
6 |
# - add "www.ecosia.org CNAME strict-safe-search.ecosia.org" (see Ecosia help center)
|
|
|
7 |
while read -r line; do
|
|
|
8 |
echo -n 'local-zone: '`echo $line|cut -d" " -f2` >> safe-searching
|
|
|
9 |
echo -n '" redirect' >> safe-searching
|
|
|
10 |
echo >> safe-searching
|
|
|
11 |
echo -n 'local-data: '`echo $line|cut -d" " -f2` >> safe-searching
|
|
|
12 |
echo -n ' CNAME '`echo $line|cut -d" " -f4` >> safe-searching
|
|
|
13 |
echo >> safe-searching
|
|
|
14 |
done < safe-searching-wk
|