Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to look up the IP address of example.com using nslookup.
Linux CLI
nslookup [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using an IP address instead of a domain name.
Typing the command without a domain name.
✗ Incorrect
The command 'nslookup example.com' queries the DNS to find the IP address of example.com.
2fill in blank
mediumComplete the code to query the MX (mail) records of example.com using dig.
Linux CLI
dig [1] example.com Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'A' instead of 'MX' to find mail servers.
Forgetting to specify the record type.
✗ Incorrect
The 'dig MX example.com' command queries the mail exchange servers for example.com.
3fill in blank
hardFix the error in the command to perform a reverse DNS lookup for IP 8.8.8.8 using nslookup.
Linux CLI
nslookup [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the .in-addr.arpa format, which requires -type=PTR (e.g., nslookup -type=PTR 8.8.8.8.in-addr.arpa).
Incorrectly ordering the IP parts.
✗ Incorrect
nslookup automatically performs a reverse (PTR) DNS lookup when given an IP address directly, such as 'nslookup 8.8.8.8'.
4fill in blank
hardFill both blanks to create a dig command that queries the NS (name server) records for example.com and shows only the answer section.
Linux CLI
dig [1] example.com +[2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '+all' which shows too much information.
Using the wrong record type like 'A' instead of 'NS'.
✗ Incorrect
The command 'dig NS example.com +short' queries the name servers and shows only the answer section for clarity.
5fill in blank
hardFill all three blanks to create a command that uses dig to query the TXT records for example.com, uses +short to simplify output, and directs the output to a file named output.txt.
Linux CLI
dig [1] example.com +[2] > [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong record type like 'MX' instead of 'TXT'.
Forgetting to redirect output to a file.
✗ Incorrect
The command 'dig TXT example.com +short > output.txt' queries TXT records, shows short output, and saves it to output.txt.