Bird
0
0

Which command would you use to find the mail server (MX record) for a domain using nslookup?

easy📝 Conceptual Q2 of 15
Linux CLI - Networking Commands
Which command would you use to find the mail server (MX record) for a domain using nslookup?
Anslookup -query=mx example.com
Bnslookup -query=txt example.com
Cnslookup -type=a example.com
Dnslookup -type=ns example.com
Step-by-Step Solution
Solution:
  1. Step 1: Identify the record type for mail servers

    Mail servers are listed under MX records in DNS.
  2. Step 2: Match the correct nslookup syntax

    nslookup -query=mx example.com uses -query=mx which queries MX records correctly.
  3. Final Answer:

    nslookup -query=mx example.com -> Option A
  4. Quick Check:

    MX record query = nslookup -query=mx [OK]
Quick Trick: Use -query=mx with nslookup to find mail servers [OK]
Common Mistakes:
  • Using -type=a for mail servers
  • Confusing TXT with MX records
  • Using wrong option syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes