The original post: /r/pihole by /u/aabesh on 2024-11-08 18:15:34.

Hello all !

I’m experiencing an issue where, when I first try to visit a website, the browser shows an error message saying the site doesn’t exist or is down. However, if I refresh the page or wait for a second or two, it eventually loads without any problems.

This issue is also affecting other applications, such as connecting to game servers. Initially, it will say “couldn’t connect,” but then a few seconds later, or after restarting the game, the connection works fine.

My network is setup thus -> ATT Passthrough --> pfSense --> TPLink Managed Switch (1 VLAN)

TPLink Managed Switch -> Deco Mesh Router (192.168.86.0/24)

TPLink Managed Switch -> piHole (10.0.0.10)

I did some digging around and it seems the first query for websites that are cached are very slow. That’s why I keep on getting a “Not Found”

https://preview.redd.it/d3ijyvltxpzd1.png?width=1148&format=png&auto=webp&s=0f741ca39c9ad211a18627f82465b5865d79c339

Once they are cached they are fast and thus when I reload the page loads fine.

https://preview.redd.it/xk6z3o3wxpzd1.png?width=1147&format=png&auto=webp&s=9d3e77debee3ededef1c692188e089a902f860d9

My current DNS setup is that I use the DNS Resolver in pfSense in “Forward Only” mode. It forwards the request to pihole on a separate VLAN. Pihole uses an unbound server running on the same machine to answer queries.

This is my debug token : https://tricorder.pi-hole.net/QNphsRYw/