2025-03-14 21:59:59 -06:00
|
|
|
# pihole
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
> Manage the Pi-hole ad-blocking DNS server.
|
|
|
|
|
> More information: <https://docs.pi-hole.net/main/pihole-command>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check the Pi-hole daemon's status:
|
|
|
|
|
|
|
|
|
|
`pihole status`
|
|
|
|
|
|
|
|
|
|
- Update Pi-hole and Gravity:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pihole {{[-up|updatePihole]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start or stop the daemon:
|
|
|
|
|
|
|
|
|
|
`pihole {{enable|disable}}`
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Update the lists and flush the cache without restarting the DNS server:
|
|
|
|
|
|
|
|
|
|
`pihole reloaddns`
|
|
|
|
|
|
|
|
|
|
- Update the list of ad-serving domains:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pihole {{[-g|updateGravity]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
- Allow or deny the specified domain:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pihole {{allowlist|denylist}} {{example.com}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Search the lists for a domain:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pihole {{[-q|query]}} {{example.com}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Open a real-time log of connections:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`pihole {{[-t|tail]}}`
|