Bird
0
0

Which of the following is the correct syntax to use dig to query the A record of example.com?

easy📝 Syntax Q12 of 15
Linux CLI - Networking Commands
Which of the following is the correct syntax to use dig to query the A record of example.com?
Adig -A example.com
Bdig example.com -t A
Cdig example.com A
Ddig -query=A example.com
Step-by-Step Solution
Solution:
  1. Step 1: Recall dig syntax for record type

    The correct syntax uses the -t option to specify the record type, e.g., dig example.com -t A.
  2. Step 2: Match syntax to options

    dig example.com -t A matches this syntax.
  3. Final Answer:

    dig example.com -t A -> Option B
  4. Quick Check:

    dig -t TYPE domain = query record [OK]
Quick Trick: Use -t to specify record type: dig example.com -t A [OK]
Common Mistakes:
  • Placing record type without -t option
  • Using invalid -A flag
  • Using nonexistent -query flag

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes