Expected behavior:
DNS server performs queries within an acceptable timeframe.
Include as many details relevant to your system/installation as possible, including but not limited to:
Pihole running on the hardware and operating system below.
- Operating system: Debian 12 Bookworm
Hardware: Raspberry Pi 4B
IP 192.168.1.105
I have a server Debian on this network running a Samba Active Directory Domain with IP 192.168.1.55. This Samba DNS configuration forwards DNS requests to the internet to the Raspberry Pi.
Clients on my LAN receive DNS servers from the router's DHCP server IP 192.168.1.1: 192.168.1.55 (samba ad-dc) and 192.168.1.105 (pihole).
Actual behavior:
Replace this text with what is actually happening.
DNS queries take a long time because pages return "no connection," but after several queries, the page loads.
This behavior occurs with any public website.
Replacing pihole's DNS with another public DNS server resolves the issue.
Debug token:
Replace this text with the debug token provided by running pihole -d
.
Following token:
https://tricorder.pi-hole.net/6cgkOHDr/
1. Total number of queries:
root@mydns /home/jjsantos
# pihole-FTL sqlite3 /etc/pihole/pihole-FTL.db "SELECT count(*) FROM queries \ WHERE timestamp > strftime('%s','now','-7 days');"
7960843
2. Number of queries with long reply times over a second:
root@mydns /home/jjsantos
# pihole-FTL sqlite3 /etc/pihole/pihole-FTL.db "SELECT count(*) FROM queries \
WHERE reply_time > 1 AND timestamp > strftime('%s','now','-7 days');"
90
3. Top 10 most frequently requested domains with long reply times:
root@mydns /home/jjsantos
# pihole-FTL sqlite3 /etc/pihole/pihole-FTL.db "SELECT count(domain), domain, round(avg(reply_time),2) FROM queries \
WHERE reply_time > 1 AND timestamp > strftime('%s','now','-7 days') \
GROUP BY domain ORDER BY 1 DESC LIMIT 10;"
5|errortracking.deepl.com|16.48
4|p77-sign-va.tiktokcdn.com|5.68
4|github.com|14.9
4|187.44.135.106|25.55
3|webcast.tiktok.com|5.61
3|nrdp.prod.cloud.netflix.com|6.6
3|cdn-0.nflximg.com|8.03
3|bag.itunes.apple.com|14.54
3|10.72.47.132|27.53
2|uiboot.netflix.com|21.06
4. The overall average reply time for the last week?
root@mydns /home/jjsantos
# pihole-FTL sqlite3 /etc/pihole/pihole-FTL.db "SELECT count(*), round(avg(reply_time*1000),1) FROM queries \
WHERE timestamp > strftime('%s','now','-7 days');"
7964235|0.6