pihole:tldr:87380
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.