Forrest logo
back to the pihole tool

pihole:tldr:5d35e

pihole: Search the lists for a domain.
$ pihole query ${example-com}
try on your machine

The command "pihole query ${example-com}" is used to query the Pi-hole DNS server for information about a specific domain name.

Here's how it works:

  • "pihole" is the command-line interface (CLI) utility for managing and interacting with Pi-hole, a DNS sinkhole that acts as a network-wide ad blocker and DNS server.
  • "query" is the specific command within Pi-hole that allows you to retrieve information about a domain name.
  • "${example-com}" is a placeholder that is meant to be replaced with the actual domain name you want to query. In this example, it is set as "example.com", which is a commonly used example domain to illustrate various concepts in networking.

So, when you run this command by replacing "${example-com}" with a domain name (e.g., "pihole query google.com"), Pi-hole will provide you with information regarding that domain name, such as its IP address, the number of times it has been requested, and whether it has been blocked or allowed by Pi-hole's ad blocking filters.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pihole tool