Challenge - 5 Problems
DNS Query Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
What is the output of this nslookup command?
You run the command
nslookup example.com. What type of information does this command return?Linux CLI
nslookup example.com
Attempts:
2 left
💡 Hint
Think about what nslookup does by default when given a domain name.
✗ Incorrect
By default, nslookup queries the DNS server for the A record, which is the IP address of the domain.
💻 Command Output
intermediate1:30remaining
What does this dig command output?
You run
dig +short MX gmail.com. What does this command output?Linux CLI
dig +short MX gmail.com
Attempts:
2 left
💡 Hint
The +short option simplifies the output, and MX queries ask for mail servers.
✗ Incorrect
The dig command with +short and MX returns only the mail servers for the domain in a concise list.
📝 Syntax
advanced2:00remaining
Which dig command correctly queries the TXT records for example.com?
Choose the correct dig command to query TXT records for example.com.
Attempts:
2 left
💡 Hint
dig uses the syntax 'dig domain TYPE' to query specific record types.
✗ Incorrect
The correct dig syntax to query a specific record type is: dig domain TYPE.
🔧 Debug
advanced2:00remaining
Why does this nslookup command fail?
You run
nslookup -type=MX example.com but get an error. What is the cause?Attempts:
2 left
💡 Hint
Check the correct syntax for specifying query type in nslookup.
✗ Incorrect
In nslookup, the correct syntax to specify query type is '-type MX' with a space, not '-type=MX'.
🚀 Application
expert3:00remaining
How to automate checking DNS A records for multiple domains?
You have a list of domains in a file called
domains.txt. Which bash script snippet correctly uses dig to print each domain with its A record IP address?Attempts:
2 left
💡 Hint
Remember the correct order of arguments for dig and how to read lines from a file.
✗ Incorrect
The correct dig syntax is 'dig +short A domain'. The while loop reads each domain line by line.