Interview Prep/Linux/Networking, SSH & Scheduling

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).

All Linux questions Roadmap: Linux

More on Networking, SSH & Scheduling