I want to know which DNS servers are in effect when I run commands like nslookup, dig, host, ping, etc.
The general answer is to
cat /etc/resolv.conf, or to look at NetworkManager, but that's only going to show me the list of servers that I normally use. It won't show me any DNS servers that got pushed to me when I connect to a VPN.
Is there a way to get an in-order list of DNS servers that commands like nslookup, dig, host, ping, etc will attempt to use?