When I perform a dig command on a domain name that is not cached, I expected to see communication between my pihole and upstream dns server in Wireshark, which is currently set to Google - 8.8.8.8 and 8.8.4.4
pihole
raspberry pi
Actual Behaviour:
When I perform a dig command on a domain name that is not cached, I’m not seeing, via Wireshark, the communication between my pihole and upstream dns server of Google - 8.8.8.8 and 8.8.4.4. The only communication I'm seeing is between my client and pihole.
My assumption is that I should be able to capture the request from pihole to Google and the response from Google to pihole if the domain I’m looking up is not already cached.
How to determine if pihole is communicating with the upstream dns server
Just go to the Query Log page on the web interface and look for the query.
If you execute dig google.com and Pi-hole is the DNS server, the query will show up on the Query Log table.
Click on the table row to show the details:
Is there any reason why I’m not able to capture that forwarded communication in Wireshark? Is there a way to capture network / vlan traffic instead of local interface network traffic? Also, if I install unbound locally on my raspberry pi and then change the upstream DNS to 127.0.0.1#5335, I should then see the traffic being forwarded to 127.0.0.1#5335 instead of 8.8.4.4, correct?