Setting up Pi-hole

Joined
10 May 2004
Posts
12,830
Location
Sunny Stafford
Thanks guys regarding the 2-in-1 Pi-Hole and VPN.

Another question - should be an easier one :) I have set Crontab (task scheduler) to update Pi-Hole every day at 0700. Shall I use all 3 lines or just the 1st one? 1st line is to update Pi-Hole at 0700, 2nd line is to update the ads definition file at 0710 then restart the DNS server at 0720. I'm just not sure whether pihole -up includes the ad definitions as well or not.

yj9JM5w.png
 
Soldato
Joined
24 Sep 2015
Posts
3,672
I'd be a little wary of doing -up in that way, there was a release not that long ago that set a password on the web interface and if it wasn't for me seeing the output of -up on the console I wouldn't have known and would have had problems logging into the web interface until I found how to change, or remove the password.

I do schedule an update of the block lists but rather than doing two separate comments through crontab which would potentially leave you without DNS for up to 10 minutes I have both commands in the same script so they fire one after the other without a gap.

Code:
#/bin/sh
/usr/local/bin/pihole -g
/usr/local/bin/pihole restartdns

That script is called /root/pihole_update.sh and that's called at 4am by crontab.

Code:
0  4    * * *   root    /root/pihole_update.sh
 
Commissario
Joined
16 Oct 2002
Posts
2,795
Location
In the radio shack
It effectively does a pinhole -g itself on a regular basis. I don't bother with any of the above although as said previously, I do have an alert via PRTG to tell me if there's an update available so I can go and grab it manually.

I don't think there's any need to manually restart the dns service either, -g does that at the end of the process.
 
Soldato
Joined
5 Nov 2011
Posts
5,362
Location
Derbyshire
As per others, I'd advise to not have the pihole -up set on crontab.

I had got it set to go once a week on my second box but that thing had it's own problems.

If you feel you MUST have an update run periodically then simply pihole -g is enough to run daily.
 
Soldato
Joined
19 Oct 2002
Posts
2,518
Location
South London
Think i've got most Domains covered :D

Untitled-1111.jpg
 
Associate
Joined
14 May 2009
Posts
2,297
Wow it is just me or are you blocking ~1.4 million more domains that a standard install? Where have you garnered these extra domains from?
 
Associate
Joined
14 May 2009
Posts
2,297
Seems this new link is quite aggressive in what it includes. You'll probably all shout at me but I use feedly for my RSS feeds, which it blocked, and it seems to have killed Skype. There is no way I could get everyone to move away and use something else andadly I've not been able to workout which domains to whitelist to get Skype working. Don't suppose anyone knows?
 

maj

maj

Soldato
Joined
19 Jul 2010
Posts
2,600
Location
Durham
Seems this new link is quite aggressive in what it includes. You'll probably all shout at me but I use feedly for my RSS feeds, which it blocked, and it seems to have killed Skype. There is no way I could get everyone to move away and use something else andadly I've not been able to workout which domains to whitelist to get Skype working. Don't suppose anyone knows?

Try whitelisting s.gateway.messenger.live.com ui.skype.com pricelist.skype.com apps.skype.com m.hotmail.com s.gateway.messenger.live.com sa.symcb.com s{1..5}.symcb.com
 
Commissario
Joined
16 Oct 2002
Posts
2,795
Location
In the radio shack
Far to aggressive for me, I tried adding some additional blacklists a while back and many useful sites were blocked. I've gone back to the original Pi-hole supplied lists now and that's enough.
 
Associate
Joined
14 May 2009
Posts
2,297
Try whitelisting s.gateway.messenger.live.com ui.skype.com pricelist.skype.com apps.skype.com m.hotmail.com s.gateway.messenger.live.com sa.symcb.com s{1..5}.symcb.com
Thanks for these, it helps but it's not the whole list, also added

arc.msn.com channel.skype.com conn.skype.com crl.microsoft.com live.com login.live.com mscrl.microsoft.com settings-win.data.microsoft.com ssw.live.com

Far to aggressive for me, I tried adding some additional blacklists a while back and many useful sites were blocked. I've gone back to the original Pi-hole supplied lists now and that's enough.
I'm close to following. It takes quite a long time for each domain to be whitelisted and then it doesn't always fix what you're trying to resolve, so a slow old process.
 
Back
Top Bottom