1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-26 09:35:34 +02:00
tldr/pages/linux/pihole.md

37 lines
697 B
Markdown
Raw Normal View History

2019-06-07 23:56:19 +02:00
# pihole
> 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
- Check the Pi-hole daemon's status:
`pihole status`
- Update Pi-hole and Gravity:
2021-07-02 20:29:24 +01:00
`pihole {{[-up|updatePihole]}}`
2019-06-07 23:56:19 +02:00
- 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:
2019-06-07 23:56:19 +02:00
`pihole {{[-g|updateGravity]}}`
2019-06-07 23:56:19 +02:00
- Allow or deny the specified domain:
2019-06-07 23:56:19 +02:00
`pihole {{allowlist|denylist}} {{example.com}}`
2019-06-07 23:56:19 +02:00
- Search the lists for a domain:
`pihole {{[-q|query]}} {{example.com}}`
2021-07-02 20:29:24 +01:00
- Open a real-time log of connections:
`pihole {{[-t|tail]}}`