Setting up Pi-hole

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'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.
 
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.
 
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.
 
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.
 

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.
 
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!
 
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.
 
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:
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!
 
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.
 
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.
 
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.
 
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