LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pihole

command-line interface for managing Pi-hole, a network-level ad blocker

TLDR

Check Pi-hole status
$ pihole status
copy
Update Pi-hole
$ sudo pihole -up
copy
Enable or disable blocking
$ pihole enable
copy
$ pihole disable
copy
Update gravity (block lists)
$ pihole -g
copy
Allow or deny a domain
$ pihole allow example.com
copy
$ pihole deny example.com
copy
Query for a domain in lists
$ pihole -q example.com
copy
View real-time log
$ pihole -t
copy
Reload DNS without restart
$ pihole reloaddns
copy

SYNOPSIS

pihole [command] [options]

DESCRIPTION

pihole is the command-line interface for managing Pi-hole, a network-level ad and tracker blocking application that acts as a DNS sinkhole.

PARAMETERS

status

Show current Pi-hole status
enable
Enable Pi-hole blocking
disable [TIME]
Disable Pi-hole blocking (optionally for specified time)
-up, updatePihole
Update Pi-hole to the latest version
-g, updateGravity
Update the gravity database (block lists)
allow DOMAIN
Add domain to the allow list
deny DOMAIN
Add domain to the deny list
-q, query DOMAIN
Search lists for a domain
-t, tail
View real-time log of DNS queries
reloaddns
Reload DNS lists and flush cache without restart
restartdns
Restart the DNS server
-c, chronometer
Display real-time stats in console
-a, admin
Admin console options (password reset, etc.)
checkout
Switch Pi-hole branches (for development)

INSTALL

nix profile install nixpkgs#pihole
copy

CAVEATS

Most commands require root privileges or use of sudo. Pi-hole acts as a DNS server, so disabling it affects all devices using it for DNS. The web admin interface provides additional management options.

HISTORY

Pi-hole was created as a network-wide ad blocker that runs on a Raspberry Pi (or other Linux system) to block advertisements and tracking at the DNS level.

SEE ALSO

dnsmasq(8), unbound(8)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid