Pi-Hole

Switch lighttpd port
https://discourse.pi-hole.net/t/migrating-pi-hole-from-lighttpd-to-apache/152/11


 * 1) !/bin/bash

if (whiptail --title "Change Pi-hole port" --yesno "Do you want to change the port pi-hole uses?" 8 78) then PORT_PIHOLE="89" PORT_PIHOLE=$(whiptail --inputbox "Which port you do you want to use for Pi-hole?" 8 78 $PORT_PIHOLE --title "Pi-hole Port" 3>&1 1>&2 2>&3) sed -i "s/server.port                = 80/server.port                 = $PORT_PIHOLE/" /etc/lighttpd/lighttpd.conf service lighttpd restart fi

http://10.0.0.10:89/admin/

Reset Password
pihole -a -p

ref: https://discourse.pi-hole.net/t/how-do-i-set-or-reset-the-web-interface-password/1328

Reset Stats
cd /etc/pihole sudo service pihole-FTL stop sudo mv pihole-FTL.db pihole-FTL.db.old sudo service pihole-FTL start

Ref: https://discourse.pi-hole.net/t/how-can-i-reset-all-pihole-stats/7749

Clear Logs
pihole -f

Whitelist Only
Set a regex ".*" black list, then whitelist what you want.

Ref: https://discourse.pi-hole.net/t/block-everything-allow-whitelisted-only/15782