Advertisement
viper25

piHole Commands

May 14th, 2021
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. Shows which blocklist the domain name is blocked from
  2. pihole -q -adlist -exact api.segment.io
  3.  
  4. Update Adlist
  5. pihole -g
  6.  
  7. SQL Queries
  8.  
  9. Showing the domain and the number of times it was found in the long-term database. Note that such a request might take a very long time for computation as the entire history of queries has to be processed for this.
  10. sqlite3 "/etc/pihole/pihole-FTL.db" "SELECT domain,count(domain) FROM queries WHERE (STATUS == 2 OR STATUS == 3) GROUP BY domain ORDER BY count(domain) DESC LIMIT 3"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement