I'm trying to fix an issue with all my queries going through my router's IP instead of the local device IP, and that leads me to a question - when I do a traceroute, should the first hop be my Raspberry Pi or my router? Thanks!
Traceroute doesn't send DNS packages but usually ICMP. There might be different ways the packages go.
To see which server is answering your DNS requests use nslookup
or dig
chrko@ThinkPad-X230:~$ nslookup google.com
Server: 10.0.10.1
Address: 10.0.10.1#53
Non-authoritative answer:
Name: google.com
Address: 172.217.23.46
Name: google.com
Address: ::
Here, 10.0.10.1
is the server answering the client's request. The server itself might send the request upstream if it doesn't know the answer, but this is information is not returned to the client.
Thanks for your respose. I have one more question - why are my devices showing 192.168.1.1 (my router) as the DNS server instead of 192.168.1.38 (Pihole)? My router is a Netgear XR500 and this is the only router I've had this problem with...
Because they are using your router as DNS server.
Did you setup your router in a way to distribute pihole's IP as DNS server via DHCP to the clients? You need to dis/reconnect the devices to the network to pick up the new settings.
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.