Utilisateur d'origine : Axel-HAUGUEL
Dissolution J'ai un peu bidouillé avec @Pierre , on a fait un script qui permet d'ajouter certaines listes de https://tspprs.com/ à notre serveur DNS.
Petit script pour ceux ça intéresse:
#!/bin/bash
mkdir list-dns-blocked
rm -rf result
mkdir result
rm -rf result.1.txt
cd result/
wget $1 -O blocklist
cat blocklist | grep "." > result.1.txt
cd ../list-dns-blocked/
for domain in $(cat ../result/result.1.txt); do
echo "0.0.0.0 $domain" >> list.txt
done
git config --global credential.helper 'cache --timeout=172800'
git add .
git commit -m "update"
git push
root@seedbox:/home/git_list_dns# tree
`
|-- list-dns-blocked
| |-- README.md
| `-- list.txt
|-- result
| |-- blocklist
| `-- result.1.txt
`-- script.sh
Ensuite il suffit de l'ajouter sur pi hole :
Et faire "Save and update" !