How do you query DNS with dig and read the answer?
BeginnerConceptCommand-Line Tools & Diagnostics
Answer
dig example.com A
dig +noall +answer +ttlid example.com
dig @1.1.1.1 example.com AAAA
dig -x 10.0.1.5
dig +short NS example.com
Look at status: (NOERROR, NXDOMAIN, SERVFAIL, REFUSED), the flags (aa authoritative, ra recursion available, tc truncated), the TTL in the answer, and Query time.
More on Command-Line Tools & Diagnostics
How do you check if a remote port is open?BeginnerHow do you list listening ports and the processes that own them?BeginnerWhat does `ping` tell you and what does it not?BeginnerHow does traceroute work and how do you read the output?BeginnerWhat is mtr and why is it better than traceroute?IntermediateHow do you use curl to debug an HTTP problem?Beginner