1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-01 04:55:46 +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

36 lines
697 B
Markdown

# 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]}}`