1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:42:09 +02:00
tldr/pages/linux/pihole.md
Lena d00edf2aec
pihole: update page (#15863)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
2025-03-07 23:12:09 +02:00

697 B

pihole

Manage the Pi-hole ad-blocking DNS server. More information: https://docs.pi-hole.net/main/pihole-command.

  • Check the Pi-hole daemon's status:

pihole status

  • Update Pi-hole and Gravity:

pihole {{[-up|updatePihole]}}

  • Start or stop the daemon:

pihole {{enable|disable}}

  • Update the lists and flush the cache without restarting the DNS server:

pihole reloaddns

  • Update the list of ad-serving domains:

pihole {{[-g|updateGravity]}}

  • Allow or deny the specified domain:

pihole {{allowlist|denylist}} {{example.com}}

  • Search the lists for a domain:

pihole {{[-q|query]}} {{example.com}}

  • Open a real-time log of connections:

pihole {{[-t|tail]}}