Setting up Pi-hole

Associate
Joined
15 Feb 2008
Posts
1,321
I've recently noticed when my pi is rebooted my internet connection will go down until I restart the DNS server in pi hole .. have tried a repair but no change.

Anyway of fixing this without a clean install?
 
Soldato
Joined
24 Sep 2015
Posts
3,668
I've recently noticed when my pi is rebooted my internet connection will go down until I restart the DNS server in pi hole .. have tried a repair but no change.

Anyway of fixing this without a clean install?

Think about it - that's to be expected. When Pi-Hole is down you have no DNS resolution so it's logical that you're having internet access problems.

As a test, keep a continual ping running to 8.8.8.8 whilst you reboot your Pi. I expect that the pings will continue just fine. So your internet connection is actually up the whole time but hte lack of working DNS is causing your problem.

If you're saying that the DNS server doesn't automatically start when your Pi is rebooted then that needs sorting. SSH into the Pi and do 'sudo systemctl enable pihole-FTL.service' and see what it says.
 
Soldato
Joined
23 Aug 2005
Posts
3,955
Location
Beds
I've recently noticed when my pi is rebooted my internet connection will go down until I restart the DNS server in pi hole .. have tried a repair but no change.

Anyway of fixing this without a clean install?

I get the same, from the logs I can see that a dependant service is either not started or not starting in time. I've not looked into it any further, I just manually start pihole after a reboot.
 
Soldato
Joined
5 Mar 2010
Posts
12,339
Yeah, don't get involved with willy waving about the number of domains on your blocklist because as said above, it's far too easy to block too much and spend the next three months whitelisting sites. The stock blocklists are perfectly good.

There are people on the Pihole support site with multiple millions of domains blocked, it's unnecessary and causes problems.

I had a similar thing on Adguard, i think there must have been a parental control option that blocked all youtube comments from loading. I couldn't figure out at first why it was doing it until one day when i was off WiFi and it worked as normal until i joined back to WiFi.

I've recently noticed when my pi is rebooted my internet connection will go down until I restart the DNS server in pi hole .. have tried a repair but no change.

Anyway of fixing this without a clean install?

Do you have a secondary DNS server pointing at a public address on your router? If you don't and your primary DNS server goes down, then yes you won't be able to resolve any FQDNs.
 
Soldato
Joined
20 Feb 2011
Posts
3,647
I get the same, from the logs I can see that a dependant service is either not started or not starting in time. I've not looked into it any further, I just manually start pihole after a reboot.

There must be a glitch in the latest Pihole as I had to manually restart the DNS Resolver after updating it today.
 
Soldato
Joined
18 Aug 2007
Posts
9,704
Location
Liverpool

That is fine, ive added a few others but entirely up to you.

https://mirror1.malwaredomains.com/files/justdomains
http://sysctl.org/cameleon/hosts
https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
https://hosts-file.net/ad_servers.txt

Not run into any issues so far and had to whitelist anything in particular. They probably overlap a fair bit but oh well.

The only blocklist you 'need' is OISD's aptly-named #1 Blocklist. It ingests dozens of sources including Steven Black's, Energizer, BadBoyz, Easylist/Easyprivacy and tons of others. It removes all dead links, all known false positives, and concatenates them into a single file.

OISD said:
The Full list blocks:
Ads, (Mobile) App Ads, Phishing, Malvertising, Malware, Spyware, Ransomware, CryptoJacking, Scam
... Telemetry/Analytics/Tracking (Where not needed for proper functionality)


Does not interfere with:
Torrent, Warez, Porn, Crypto Exchanges, News Satire, Gambling, Slickdeals (or shopping sites in general), Google (shopping), Facebook, Twitter, Snapchat, Link Shortners, Affiliate/Tracking Links, Gambling, Surveys, etc.

The dev is very friendly and responsive, and in the last year I've found a grand total of one false positive, which was fixed within an hour of me submitting a report through the site. It's designed to be run as the only list in your setup, and I've literally needed to manually block only two missed domains in over a year - which, again, the dev added to the blocklist within the hour when I told him. Superb, tbh.

The ABP format list is particularly nice as it blocks all subdomains by default, and therefore is way smaller than the full expanded hosts file. I don't think you can use those in PiHole though (I use the far superior AdGuard Home :p).

You can find the various list formats on the Downloads page here.
 
Soldato
Joined
14 Oct 2009
Posts
9,541
Location
UK
The only blocklist you 'need' is OISD's aptly-named #1 Blocklist. It ingests dozens of sources including Steven Black's, Energizer, BadBoyz, Easylist/Easyprivacy and tons of others. It removes all dead links, all known false positives, and concatenates them into a single file.



The dev is very friendly and responsive, and in the last year I've found a grand total of one false positive, which was fixed within an hour of me submitting a report through the site. It's designed to be run as the only list in your setup, and I've literally needed to manually block only two missed domains in over a year - which, again, the dev added to the blocklist within the hour when I told him. Superb, tbh.

The ABP format list is particularly nice as it blocks all subdomains by default, and therefore is way smaller than the full expanded hosts file. I don't think you can use those in PiHole though (I use the far superior AdGuard Home :p).

You can find the various list formats on the Downloads page here.
Interesting, cheers for that. I have just deleted all my others and added in; https://dbl.oisd.nl/ as a sole resource. Will test how it goes!
 
Soldato
Joined
18 Aug 2007
Posts
9,704
Location
Liverpool
Didn’t work for me. Pihole says all the domains are invalid.

Have you added the wrong format list? For PiHole, you need either the WildCard List (not sure this works, but try it anyway as it's shorter/better of the two) or else the full Hosts List. Unlike AGH, PiHole can't handle ABP format, and needs to have every single subdomain and entry spelled out separately for it, hence bigger lists.
 
Soldato
Joined
18 Aug 2007
Posts
9,704
Location
Liverpool
How are you chaps getting along with running only oisd.nl #1 block list? It's been a few days now and I'm curious.

Still doing great for me, I swapped to it as my sole list ages ago now and it never lets me down:

QimRBvz.png

Edit: Derp, just came back to the thread and saw the pic was inserted twice.
 
Last edited:
Soldato
Joined
14 Oct 2009
Posts
9,541
Location
UK
I am using PiHole with the osid.nl block list but if I browse to...https://www.thenationalnews.com/sport/football/ or https://www.seattletimes.com/. Just two well known ad filled sites, the adverts are still there. Its blocking a few for me as I can see them in the logs but just not all of them.

Please could someone else check these sites and let me know how it looks on their end.

Note, I am browsing on my phone so I don't have an adblocker installed to the browser which seems to sort the issue when using my laptop or desktop.

Maybe it's not possible to truly block everything or I've just not set it up right!
 
Man of Honour
Joined
20 Sep 2006
Posts
33,991
I've got a pair of Pi-Holes running now, one on a Ubuntu VM and one running on a R-Pi 3 Model B.

Is there a way to have the manual DNS entries I create for local hosts to update between the two, ie, so I don't have to enter them onto both of the Pi-Holes.
 
Soldato
Joined
24 Sep 2015
Posts
3,668
The local DNS records are stored in /etc/pihole/custom.list so it's just a case of copying that file over to the other host and restarting Pi-Hole for the new file to be read in.

Somewhere in this thread will be a bash script that I posted (I believe Feek started using it too) that did something very similar to that. It'd be easy enough to modify that script to copy over custom.list.
 
Soldato
Joined
19 Oct 2002
Posts
6,829
Location
Bath
I've got a pair of Pi-Holes running now, one on a Ubuntu VM and one running on a R-Pi 3 Model B.

Is there a way to have the manual DNS entries I create for local hosts to update between the two, ie, so I don't have to enter them onto both of the Pi-Holes.


Just update the hosts file on one and SSH copy it to the other.
 
Soldato
Joined
20 Oct 2002
Posts
15,990
Location
North West
Just installed PiHole in a docker instance on my synology (DS918+/16GB RAM).

Added a couple of lists from here (namely Rainmaker) and my blocked lists has gone from about 78k to nearly 1million - will see how it goes.

Just to query, why do you use Adguard ontop of pihole Rainmaker? What benefits does it give?
 
Back
Top Bottom