2019-06-07 23:56:19 +02:00
|
|
|
# pihole
|
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
> Manage the Pi-hole ad-blocking DNS server.
|
|
|
|
> More information: <https://docs.pi-hole.net/main/pihole-command>.
|
2019-06-07 23:56:19 +02:00
|
|
|
|
2025-06-27 07:07:11 +01:00
|
|
|
- Check Pi-hole's status:
|
2019-06-07 23:56:19 +02:00
|
|
|
|
|
|
|
`pihole status`
|
|
|
|
|
2022-04-24 09:44:17 +02:00
|
|
|
- Update Pi-hole and Gravity:
|
2021-07-02 20:29:24 +01:00
|
|
|
|
2025-06-27 07:07:11 +01:00
|
|
|
`sudo pihole {{[-up|updatePihole]}}`
|
2019-06-07 23:56:19 +02:00
|
|
|
|
|
|
|
- Start or stop the daemon:
|
|
|
|
|
|
|
|
`pihole {{enable|disable}}`
|
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
- Update the lists and flush the cache without restarting the DNS server:
|
|
|
|
|
|
|
|
`pihole reloaddns`
|
|
|
|
|
|
|
|
- Update the list of ad-serving domains:
|
2019-06-07 23:56:19 +02:00
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
`pihole {{[-g|updateGravity]}}`
|
2019-06-07 23:56:19 +02:00
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
- Allow or deny the specified domain:
|
2019-06-07 23:56:19 +02:00
|
|
|
|
2025-06-27 07:07:11 +01:00
|
|
|
`pihole {{allow|deny}} {{example.com}}`
|
2019-06-07 23:56:19 +02:00
|
|
|
|
|
|
|
- Search the lists for a domain:
|
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
`pihole {{[-q|query]}} {{example.com}}`
|
2021-07-02 20:29:24 +01:00
|
|
|
|
|
|
|
- Open a real-time log of connections:
|
|
|
|
|
2025-03-07 21:12:09 +00:00
|
|
|
`pihole {{[-t|tail]}}`
|