commands.sh

pihole

linux

Manage the Pi-hole ad-blocking DNS server.

More info →

Options (4)

boolean

Update Pi-hole and Gravity

Example: sudo pihole {{[-up|updatePihole]}}
-gboolean

Update the list of ad-serving domains

Example: pihole {{[-g|updateGravity]}}
-qboolean

Search the lists for a domain

Example: pihole {{[-q|query]}} {{example.com}}
-tboolean

Open a real-time log of connections

Example: pihole {{[-t|tail]}}

Examples (8)

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]
made by @shridhargupta | data from tldr-pages