How do you use `dig` for DNS troubleshooting?
BeginnerConceptNetworking, SSH & Scheduling
Answer
dig example.com +short
dig example.com A @8.8.8.8 # ask a specific resolver
dig example.com MX
dig +trace example.com # follow delegation from the root
dig -x 93.184.216.34 # reverse lookup
dig example.com +noall +answer # answer section with TTLs
nslookup and host exist, but dig gives full detail (flags, TTL, authority).
More on Networking, SSH & Scheduling
Which `ip` commands replace ifconfig, route and arp?BeginnerWhat does `ss` show, and which flags do you use?BeginnerExplain the TCP connection states you see in ss.AdvancedWhat happens, step by step, when you run `curl https://example.com`?AdvancedWhich curl flags are most useful for debugging?BeginnerWhat are /etc/hosts, /etc/resolv.conf and /etc/nsswitch.conf?Intermediate