How do you query a specific DNS server and see TTL?

IntermediateConceptNetworking
Answer
dig @8.8.8.8 api.example.com +noall +answer

The second column of the answer is the remaining TTL in seconds.

All Real-World Interview questions Roadmap: Interview readiness

More on Networking