1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-23 16:55:30 +02:00
tldr/pages/linux/pihole.md
2025-06-27 09:07:11 +03:00

36 lines
683 B
Markdown

# pihole
> Manage the Pi-hole ad-blocking DNS server.
> More information: <https://docs.pi-hole.net/main/pihole-command>.
- Check Pi-hole's status:
`pihole status`
- Update Pi-hole and Gravity:
`sudo 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 {{allow|deny}} {{example.com}}`
- Search the lists for a domain:
`pihole {{[-q|query]}} {{example.com}}`
- Open a real-time log of connections:
`pihole {{[-t|tail]}}`