Bird
0
0

What will be the output of the command dig +short google.com?

medium📝 Command Output Q4 of 15
Linux CLI - Networking Commands
What will be the output of the command dig +short google.com?
AAn error message about invalid syntax
BDetailed DNS query information including headers
CA list of IP addresses for google.com
DThe MX records for google.com
Step-by-Step Solution
Solution:
  1. Step 1: Understand the +short option in dig

    The +short option returns only the answer section, typically IP addresses.
  2. Step 2: Analyze the command output

    Since no record type is specified, dig defaults to A record, so it returns IP addresses.
  3. Final Answer:

    A list of IP addresses for google.com -> Option C
  4. Quick Check:

    dig +short returns concise IP list [OK]
Quick Trick: +short shows only the answer, usually IPs [OK]
Common Mistakes:
  • Expecting detailed info with +short
  • Confusing +short with error
  • Assuming MX records returned

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes