Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to identify the primary purpose of DNS.
Computer Networks
The main function of DNS is to translate [1] names into IP addresses. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing domain names with IP addresses
Thinking DNS translates hardware names
✗ Incorrect
DNS converts domain names like example.com into IP addresses computers use to communicate.
2fill in blank
mediumComplete the code to show the DNS record type used for mapping domain names to IP addresses.
Computer Networks
The DNS record type that maps a domain name to an IPv4 address is called an [1] record. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing MX which is for mail servers
Choosing CNAME which is for aliases
✗ Incorrect
An A record in DNS links a domain name to its IPv4 address.
3fill in blank
hardFix the error in the explanation about DNS caching.
Computer Networks
DNS caching helps reduce [1] by storing previous query results temporarily. Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Thinking caching reduces errors
Confusing bandwidth with latency
✗ Incorrect
DNS caching reduces latency by avoiding repeated lookups for the same domain.
4fill in blank
hardFill both blanks to complete the DNS query process description.
Computer Networks
When a DNS resolver receives a query, it first checks its [1] cache and if not found, it queries the [2] DNS server.
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing authoritative with root server
Thinking global cache is checked first
✗ Incorrect
The resolver checks its local cache first, then queries the root DNS server if needed.
5fill in blank
hardFill all three blanks to complete the DNS record comprehension example.
Computer Networks
records = { [1]: [2] for [3] in dns_data if dns_data[[3]]['type'] == 'A' } Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using record['name'] as key without defining record
Mixing up keys and values
✗ Incorrect
This comprehension creates a dictionary mapping domain names to IP addresses for A records.