At the moment our blocklist updates once a week, is it possible to add an option to have one(or more) of the items added to the blocklist update more frequently? Custom value is welcome. I ask this because we have an institution in PL that issues warnings and manages its own list of unsafe domains their list is updated very often, they claim every 5 minutes. It would be useful for my parents. They are elderly people and you never know what they will click on.
1.The address of the site of the institution I am talking about referring directly to the list of malicious domains, the page in Polish
(Lista ostrzeżeń przed niebezpiecznymi stronami | CERT Polska)
- Said list: https://hole.cert.pl/domains/domains.txt
Schedule the command
pihole -g to run as needed using cron.
Usage: pihole [options]
-g, updateGravity Update the list of ad-serving domains
I know that i can use cron for such things, but i just want to update one source more often and
I don't want to get in the way of a cron entry that pihole created
I'd strongly recommend against updating it every five minutes.
That would result in
pihole-FTL restarting every five minutes, which may give you short micro periods of DNS outages in those intervals.
Depending on the size of that list, it could also result in starting the next update process before the previous had a chance to finish, which could grind your system to a halt.
If your using unbound, you could consider implementing this list as an unbound RPZ zone. Either ask that institution to make the list available in RPZ format OR download the list "as is" and convert it to RPZ format, using a bash script, storing the result in the pihole web server (/var/www/html), than configure unbound to retrieve the zone from htttp://127.0.0.1/....
An example of an RPZ zone, which updates very frequently (multiple times per day) can be found here
How to setup RPZ zones (with unbound in a pi-hole environment) can be found in this manual.
I had not planned to do so, opting rather for an update once a day.
If you want to achieve this:
- open /etc/cron.d/pihole and copy the line (line 21 ?) that has the word (filename) pihole_updateGravity.log in it (twice).
- create a new file /etc/cron.d/extragravityupdates
- enter the copied line in the new file. and change * * 7 into * * 1-6 (don't change anything else), only in the new file, don't change the original.
- make sure there is an extra linefeed behind that line, or it won't work)
- save the new file
The regular pihole cron (overwritten when you update) will still execute on sunday, the additional file ensures the gravity update runs on all other days (monday .. saturday).
Using a separate file ensures a pihole update (pihole -up) doesn't undo your additional config.
Be aware this will update all lists, not just the one you mentioned earlier.
Sounds like a plan and i will do it, but we are in "Feature requests" section
You are correct, but normally a Feature Request needs some votes from other users to be considered as a candidate for development.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.