From c5638417141d6313695aa76930dd79f69181ffe4 Mon Sep 17 00:00:00 2001 From: jacobsalmela Date: Sat, 6 Jun 2015 23:34:32 -0500 Subject: [PATCH] changing the origin folder Originally, I had this set to /run/shm (in RAM) but ran into errors when the list reached 900,000 entries. Then I moved it to /tmp. Finally, I decided to just put the files in the pihole dir so they are available after reboots. This will help with only downloading the lists when absolutely needed--respecting the bandwidth of the people serving the lists. It is also possible to add addn-hosts=/path/to/hosts.conf within the dnsmasq.conf file if you don't want to use hosts. For simplicity and speed, I just use the regular hosts file. --- gravity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index c7a01f88..e1dad2bb 100755 --- a/gravity.sh +++ b/gravity.sh @@ -13,7 +13,7 @@ sources=('https://adaway.org/hosts.txt' 'http://winhelp2002.mvps.org/hosts.txt') # Variables for various stages of downloading and formatting the list -origin=/tmp +origin=/etc/pihole piholeDir=/etc/pihole justDomainsExtension=domains matter=pihole.0.matter.txt