Pi-hole: Difference between revisions
| Line 1: | Line 1: | ||
Pi-hole is a light weight application that configures a DNS and DHCP server for the purpose of blocking advertisements. It comes with an optional control panel written in PHP. As the name suggests, it is designed to run on a Raspberry Pi, although it can also be installed on anything that runs a supported version of Linux. | Pi-hole is a light weight application that configures a DNS and DHCP server for the purpose of blocking advertisements. It comes with an optional control panel written in PHP. As the name suggests, it is designed to run on a Raspberry Pi, although it can also be installed on anything that runs a supported version of Linux. | ||
==Installation== | ==Installation== | ||
Pi-hole can be installed on a clean install of Raspbian | Pi-hole can be installed on a clean install of Raspbian, Ubuntu, Debian, Fedora, or CentOS. The installation process can be started by running their install script with alternative methods listed on their [https://docs.pi-hole.net/main/basic-install/ installation page]. | ||
{{Highlight | {{Highlight | ||
| code = # curl -sSL https://install.pi-hole.net {{!}} bash | | code = # curl -sSL https://install.pi-hole.net {{!}} bash | ||
| Line 10: | Line 8: | ||
}} | }} | ||
Follow the installation steps and make a note of the admin password that is generated. If you did not see the admin password or if you've forgotten it, you can reset it with <code>pihole -a -p</code>. | Follow the installation steps and make a note of the admin password that is generated. If you did not see the admin password or if you've forgotten it, you can reset it with <code>pihole -a -p</code>. | ||
==Administration== | ==Administration== | ||
| Line 45: | Line 33: | ||
| code = # pihole -up | | code = # pihole -up | ||
| lang = terminal | | lang = terminal | ||
}} | }} | ||
== Troubleshooting == | |||
=== Pi-hole is blocking itself when accessing pihole URL === | |||
When navigating to http://pihole/, you may see an error "Access to the following website has been denied:" and that "This is primarily due to being flagged as: Not found on any Blacklist". This is a red herring since lighttpd will serve the website blocked page for any domains it does not recognize. | |||
You can still navigate to http://pihole/admin to view the dashboard. | |||
==See Also== | ==See Also== | ||
*Official Documentation - https://docs.pi-hole.net | *Official Documentation - https://docs.pi-hole.net | ||
Revision as of 02:01, 21 June 2020
Pi-hole is a light weight application that configures a DNS and DHCP server for the purpose of blocking advertisements. It comes with an optional control panel written in PHP. As the name suggests, it is designed to run on a Raspberry Pi, although it can also be installed on anything that runs a supported version of Linux.
Installation
Pi-hole can be installed on a clean install of Raspbian, Ubuntu, Debian, Fedora, or CentOS. The installation process can be started by running their install script with alternative methods listed on their installation page.
# curl -sSL https://install.pi-hole.net | bash
Follow the installation steps and make a note of the admin password that is generated. If you did not see the admin password or if you've forgotten it, you can reset it with pihole -a -p.
Administration
TFTP / PXE Boot Support

Unlike in OpenWRT where you can define the TFTP settings for dnsmasq directly in Luci, with Pi-hole, you will need to define the dnsmasq DHCP options configuration in a configuration file manually.
Create a dnsmasq configuration file at /etc/dnsmasq.d/02-tftp.conf with the following lines to define the next server and next file. These are the same values that you would have entered in OpenWRT via Luci. Ensure that the TFTP root exists and contains your PXE boot files.
# Defined within /etc/dnsmasq.d/02-tftp.conf
tftp-root=/tftpboot
dhcp-boot=pxelinux.0,10.1.2.54,10.1.2.54
Restart dnsmasq (via systemd or the Pi-hole control panel) to apply.
Updating
Updating Pi-hole is as simple as running:
# pihole -up
Troubleshooting
Pi-hole is blocking itself when accessing pihole URL
When navigating to http://pihole/, you may see an error "Access to the following website has been denied:" and that "This is primarily due to being flagged as: Not found on any Blacklist". This is a red herring since lighttpd will serve the website blocked page for any domains it does not recognize.
You can still navigate to http://pihole/admin to view the dashboard.
See Also
- Official Documentation - https://docs.pi-hole.net