I am using the latest Raspbian Lite Linux and I cannot figure out how to get it to tell me which DNS server my queries are being sent to. Everything that I try is only returning the localhost address (127.0.0.1), which of course is referring to the local DNS cache. However, I want to know which upstream DNS server is being used (in my case, I want to verify that it is using the Google DNS servers, not the router).
Here's are some details:
- I have not set any custom DNS servers in
- The contents of
/etc/resolv.confare automatically generated by
resolvconf. It contains the line
nameserver 127.0.0.1. Manual changes to this file do not persist (as expected).
/etc/network/interfacesI have the following line in my network interface settings for wlan0:
dns-nameservers 22.214.171.124 126.96.36.199
What I have tried:
Server: 127.0.0.1 Address: 127.0.0.1#53
nmcli dev show | grep DNSreturns no results. There are no DNS related entries at all in a full
nmcli dev show.
Any recommendations beyond what I've tried so far?
For clarity: DNS is working fine. I just want to know what upstream server is being queried.