diff --git a/knowledge base/pihole.md b/knowledge base/pihole.md index f008e0c..1148dd2 100644 --- a/knowledge base/pihole.md +++ b/knowledge base/pihole.md @@ -1,4 +1,4 @@ -# Pihole +# The `pihole` command ## Table of contents @@ -14,30 +14,54 @@ pihole status # Temporarily disable blocking. pihole disable '5m' -# Follow the logs in real-time. +# Follow the query logs in real-time. pihole tail +pihole -t # Set or change the Web Interface's password. pihole -a -p pihole -a -p 'new-password' -# Show Chronometer, the console dashboard of real-time stats. -pihole -c - -# Show Chronometer and exit. -pihole -c -e - -# Empty Pi-hole's logs. -pihole flush - # Update Graviton's DB. +pihole updateGravity pihole -g -# Backup all settings and the configuration. -# Without a path, the backup will be created in the current directory. +# Show Chronometer, the console dashboard of real-time stats. +# Live updates. +pihole -c + +# Show Chronometer once, then exit. +pihole -c -e + +# Empty Pi-hole's query log. +# Effectively truncates '/var/log/pihole/pihole.log'. +pihole flush + +# Backup all settings and the configuration in the current directory. # The resulting archive can be imported using the Settings > Teleport webpage. +pihole admin teleporter pihole -a -t + +# Backup all settings and the configuration to the specified file. +pihole admin teleporter 'path/to/backup/file.tar.gz' pihole -a -t 'path/to/backup/file.tar.gz' + +# Fully restart Pi-hole's subsystems. +pihole restartdns + +# Update the lists and flush the cache *without* restarting the DNS server. +pihole restartdns reload + +# Update the lists, but do not flush the cache nor restart the DNS server. +pihole restartdns reload-lists + +# Reconfigure or Repair the subsystems. +pihole reconfigure +pihole -r + +# Check updates. +pihole updatePihole --check-only +pihole -up --check-only ``` ## Further readings