are there any diagnostic tools to help me figure out how the system is trying (and failing) to do DNS resolution? Ideally something that says "I'm using systemd-resolved or dnsmasq or whatever, and I'm trying to contact server x.x.x.x"
Bonus points for telling me if we're trying to do IPv4 or IPv6 resolution.
So here's the problem I'm trying to solve:
chris@mu:~$ dig dl.google.com ; <<>> DiG 9.11.3-1ubuntu1.1-Ubuntu <<>> dl.google.com ;; global options: +cmd ;; connection timed out; no servers could be reached
What I'm trying to figure out here is:
- What service is being asked to resolve the DNS lookup for me. It seems that it could be systemd-resolved, or dnsmasq or resolvconf (and I'm not even sure if that last one is a DNS resolver). This is important because it would tell me what configurations I should be looking at.
- What "upstream" DNS servers are being queried. That should come out of the configuration stuff, but I'd like to be able to confirm.