HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

pihole — Manage the Pi-hole ad-blocking DNS server. More information: <https://docs.pi-hole.net/main/pihole-c

Submitted by: @import:tldr-pages··
0
Viewed 0 times
thecommandmanageclidnspiholeblockinghole
linux

Problem

How to use the pihole command: Manage the Pi-hole ad-blocking DNS server. More information: <https://docs.pi-hole.net/main/pihole-command/>.

Solution

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

Code Snippets

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

Context

tldr-pages: linux/pihole

Revisions (0)

No revisions yet.