Go Back

pihole

Unlike browser based ad blockers, pihole works at the domain name resolution level to block domains known to privide the ads appearing in web pages.

Set your DNS IP address to the one shown and many ads will get blocked even before they're delivered to your laptop or mobile device. This can save a lot of bandwidth and generally speed up the loading of websites.

Change DNS on your internet router

If your internet router allows you to change the DNS IP address then this is the best way to use pihole because it will then provide coverage for all of the devices and computers in your home.

Change DNS on individual devices

If you can't change your internet router's DNS then you can do that on individual GNU/Linux systems as follows:

sudo chattr -i /etc/resolv.conf
sudo nano /etc/resolv.conf

Remove or comment out any existing nameservers and add one with the IP address shown for the pihole app. Something like:

nameserver 192.168.x.y

Then save and exit and prevent the file from being automatically changed with:

sudo chattr +i /etc/resolv.conf

If you're running the standard version of LibreServer (not the onion version) then you may need to modify your hosts file to access your own domain.

sudo nano /etc/hosts

Then add something like:

192.168.x.y yourdomainname

This only works when you're within your home network, so if you're outside of your home then undo the changes made above.