https://github.com/timintech/pi-hole_troubleshooting_guide
This guide provides solutions to common issues encountered when using Pi-hole v6, including DNS resolution problems, blocking issues, network conflicts, and performance optimizations.
https://github.com/timintech/pi-hole_troubleshooting_guide
adblock debugging dns linux pihole rasspberry self-hosted troubleshooting
Last synced: about 2 months ago
JSON representation
This guide provides solutions to common issues encountered when using Pi-hole v6, including DNS resolution problems, blocking issues, network conflicts, and performance optimizations.
- Host: GitHub
- URL: https://github.com/timintech/pi-hole_troubleshooting_guide
- Owner: TimInTech
- License: mit
- Created: 2025-03-16T19:53:20.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-03-16T19:57:02.000Z (about 2 months ago)
- Last Synced: 2025-03-16T20:36:42.154Z (about 2 months ago)
- Topics: adblock, debugging, dns, linux, pihole, rasspberry, self-hosted, troubleshooting
- Homepage: https://github.com/TimInTech/
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# π οΈ Pi-hole v6 - Troubleshooting Guide
This guide provides solutions to common issues encountered when using Pi-hole v6, including DNS resolution problems, blocking issues, network conflicts, and performance optimizations.
---
## π 1. DNS Resolution Issues
### πΉ Pi-hole is not blocking ads
β **Solution:**
1. Ensure that your device is using Pi-hole as the primary DNS:
```bash
nslookup pi.hole
```If it fails, your router may be overriding DNS settings. Manually configure your deviceβs DNS.
2. Restart Pi-hole:
```bash
pihole restartdns
```3. Check if the blocklists are up-to-date:
```bash
pihole -g
```### πΉ Sites are slow to load / DNS queries take too long
β **Solution:**
1. Check query time:
```bash
dig google.com @127.0.0.1 -p 5335
```2. Ensure that Unbound or the upstream DNS is responsive.
3. Optimize the cache size in unbound.conf:
```
cache-max-ttl: 86400
cache-min-ttl: 3600
```### πΉ Pi-hole is not resolving local domains
β **Solution:**
1. Add local DNS records:
```bash
sudo nano /etc/pihole/custom.list
```Example entry:
```
192.168.1.100 myserver.local
```2. Restart DNS:
```bash
pihole restartdns
```---
## π§ 2. Whitelisting & Blocklist Issues
### πΉ A website is blocked even after whitelisting
β **Solution:**
1. Check if the domain is still blocked:
```bash
pihole -q example.com
```2. Force Pi-hole to update lists:
```bash
pihole restartdns
```3. Manually whitelist:
```bash
pihole -w example.com
```### πΉ Blocklists are not updating
β **Solution:**
1. Manually update:
```bash
pihole -g
```2. Check for errors:
```bash
cat /var/log/pihole_updateGravity.log
```---
## π 3. IPv6 & Network Issues
### πΉ IPv6 Queries are not being blocked
β **Solution:**
1. Ensure Pi-hole is handling IPv6:
```bash
dig AAAA example.com @127.0.0.1 -p 5335
```2. If required, force all clients to use IPv4:
```bash
pihole -a setdns 192.168.1.2
```### πΉ Some devices bypass Pi-hole
β **Solution:**
1. Ensure that your router only assigns Pi-holeβs IP as DNS.
2. Block external DNS on the router firewall:
```bash
sudo iptables -A OUTPUT -p udp --dport 53 -j REJECT
```3. If the device uses DoH/DoT (DNS over HTTPS/TLS), block common DoH servers.
---
## 4. Performance & Optimization
### πΉ Pi-hole uses too much memory
β **Solution:**
1. Reduce the number of blocklists:
```bash
pihole -a -b remove_list_url
```2. Reduce FTL cache size in /etc/pihole/pihole-FTL.conf:
```
MAXDBDAYS=7
DBINTERVAL=60.0
```### πΉ Reduce Unbound CPU usage
β **Solution:**
1. Optimize the Unbound configuration:
```
num-threads: 1
msg-cache-size: 4m
rrset-cache-size: 8m
```---
## π 5. Debugging & Logs
### πΉ How to check live logs
```bash
pihole -t
```### πΉ Check DNS query logs
```bash
cat /var/log/pihole.log | grep example.com
```### πΉ Enable FTL debugging for deeper analysis
```bash
pihole checkout ftl debug
```---
## π 6. Reporting Issues
If the issue persists, generate a debug log and submit it:
```bash
pihole -d