Pi-hole Setup Guide ​
This guide will help you configure Pi-hole to use the UK DNS Privacy Project's public DNS resolvers, enhancing your network's privacy and security.
Prerequisites ​
- A working Pi-hole installation.
- Access to the Pi-hole Admin Interface.
- Basic knowledge of SSH or terminal access if required.
Step 1: Access the Pi-hole Admin Interface ​
- Open a web browser and go to the Pi-hole admin panel:or use your Pi-hole’s IP address, e.g.,
http://pi.hole/admin
http://192.168.1.2/admin
. - Log in using your administrator credentials.
Step 2: Update Upstream DNS Servers ​
- In the Admin Interface, go to Settings > DNS.
- Under Upstream DNS Servers, deselect any default options.
- Enter the UK DNS Privacy Project's resolvers manually:
- Primary Server:
209.250.227.42
- Secondary Server:
64.176.190.82
- Primary Server:
- Click Save to apply the changes.
Step 3: Enable DNS over HTTPS (DoH) or DNS over TLS (DoT) (Optional) ​
For encrypted DNS resolution, you can configure dnscrypt-proxy, or Unbound alongside Pi-hole.
Step 4: Flush DNS Cache and Test ​
To apply changes immediately:
sh
pihole restartdns
Visit the UK DNS Project homepage to verify that your system is using the configured DNS.
Troubleshooting ​
- Ensure Pi-hole is not using any other upstream DNS resolvers.
- Restart your router if changes are not taking effect.
- Check logs in the Pi-hole admin panel under Query Log.
For more assistance, visit our Getting Help page.