Forrest logo
back to the pihole tool

pihole:tldr:87380

pihole: Restart the daemon (not the server itself).
$ pihole restartdns
try on your machine

The command "pihole restartdns" is used to restart the DNS (Domain Name System) service provided by Pi-hole. Pi-hole is a network-wide ad-blocker that functions by acting as a DNS sinkhole. It intercepts domain name resolution requests made by devices on the network and blocks requests to known ad-serving domains.

When you run the "pihole restartdns" command, it stops and then restarts the DNS service provided by Pi-hole. This can be useful in situations where you have made changes to the Pi-hole configuration or installed updates, and you want to ensure that the DNS service is running with the latest changes.

Restarting DNS service can temporarily interrupt internet connectivity for devices on the network since their DNS queries cannot be resolved while the service is stopped. However, once the service is restarted, DNS resolutions will resume as normal.

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