If you don’t know what is Pi-hole, stop reading this post and read this website instead: https://pi-hole.net
Instead of hosting my Pi-hole on a Raspberry Pi, I use Ubuntu Server on a VMware host. Even using LTS versions of Ubuntu Server get outdated, so here’s a how-to for getting the guest updated.
- Backup your server somehow. I use Veeam as well as take a VMware snapshot. You could also use Acronis at boot time and take an image.
sudo apt update && sudo apt upgrade
sudo apt install update-manager-core
You’ll get prompted throughout the process multiple times multiple questions. I chose to kept custom modified file as-is and not revert to the package original. Clear out all outdated packages as well.
After successfully updating Ubuntu Server, you’ll have to run the following command to fix Pi-hole. Also make sure Webmin is the latest version.
sudo rm /etc/dnsmasq.d/lxd
Pi-hole makes puppies and dogs sad if you’re trying to use the Amazon for Android app.
Add these domains to make it work again.
I’ve been using AdBlock for a few years now. There are many clones so let’s be specific: https://www.getadblock.com/ Accept no substitutes.
For the most part, it works great. However, the “cat” in this battle (websites and advertisers) can detect when you use AdBlock and may choose to either give you a nag screen (please help us pay for our site) or deny you access entirely unless you whitelist the site.
Which brings me to Pi-hole. This service runs on any Linux distro, and the most popular method is to use a Raspberry Pi, hence the name. However I chose to use Ubuntu Server as a virtual guest on VMware.
Installation was extremely simple if you follow their website. Once installed, you can change the default password by running the command on your Linux command line:
pihole -a -p
Once Pi-hole is running, change the DNS of your DHCP server to resolve to the Pi-hole device (or virtual guest). That’s it.
I don’t have a need for this yet, but I want to remember it.