Complete the code to identify the primary purpose of DNS.
The main function of DNS is to translate [1] names into IP addresses.DNS converts domain names like example.com into IP addresses computers use to communicate.
Complete the code to show the DNS record type used for mapping domain names to IP addresses.
The DNS record type that maps a domain name to an IPv4 address is called an [1] record.An A record in DNS links a domain name to its IPv4 address.
Fix the error in the explanation about DNS caching.
DNS caching helps reduce [1] by storing previous query results temporarily.DNS caching reduces latency by avoiding repeated lookups for the same domain.
Fill both blanks to complete the DNS query process description.
When a DNS resolver receives a query, it first checks its [1] cache and if not found, it queries the [2] DNS server.
The resolver checks its local cache first, then queries the root DNS server if needed.
Fill all three blanks to complete the DNS record comprehension example.
records = { [1]: [2] for [3] in dns_data if dns_data[[3]]['type'] == 'A' }This comprehension creates a dictionary mapping domain names to IP addresses for A records.
