📝 Generic and country domains in DNS (12 MCQs)
Top-Level Domain Categories in the DNS Tree
Top-level domains identify the highest-level categories beneath the DNS root. Generic top-level domains include names such as com, org and net, while country-code top-level domains use two-letter codes such as pk, uk and jp. These labels organize the namespace, support registration policies and provide a delegation point for lower-level domains. Its distributed structure avoids reliance on one central database for every Internet name worldwide.
Generic Domains and Country-Code Domains
A generic TLD may be open to broad registration or have eligibility rules, depending on its registry policy. A country-code TLD is associated with a territory and is commonly administered under that territory's policy framework. A domain registered beneath a TLD can have second-level labels and further organizational subdomains. Record types let different network services publish information in a common naming system.
Delegation from the Root to TLD Name Servers
A resolver follows the DNS tree from the root to a TLD name server, then follows referrals toward the authoritative servers for a registered domain. The TLD zone contains delegation information rather than necessarily holding the final host address. The domain's authoritative zone provides records for its names and services.
Classifying Common Domain Name Examples
In www.example.com, com is a generic TLD. In www.example.com.pk, pk is the country-code TLD, while com is a label beneath it. In a name ending in .uk, uk is the ccTLD. These labels indicate position in the hierarchy; they do not by themselves prove where a server is physically located.
Registration Policies and Domain Administration
Registration of a domain beneath a TLD is handled through registrars and the relevant registry's policies. Some country-code namespaces use structured categories such as com.pk, while others permit direct second-level registration. The DNS hierarchy supports these different policies without changing the basic query and resource-record mechanisms. This division supports scalable administration while keeping naming separate from packet forwarding.
Misconceptions About TLD Meaning and Eligibility
'Every .com website is physically in the United States' is false because a TLD does not determine server location. 'All country-code domains are restricted to residents' is incorrect because eligibility rules vary by registry. 'A second-level label is always a personal company name' is wrong because it can identify many kinds of registered entities or services.
Identifying gTLD and ccTLD Names
Classify .com, .org and .net as generic TLD examples, and .pk or .uk as country-code examples. Read names from right to left to locate the TLD and labels beneath it. In registration questions, distinguish the TLD registry's policy from the registrar that provides services to domain registrants. Practice each lookup stage and match returned data to the requested record type.
TLD Classification and Registration Terms
- gTLD - Generic top-level domain category.
- ccTLD - Country-code top-level domain assigned to a territory.
- TLD - Domain level beneath DNS root.
- Registry - Operates a TLD registration database.
- Registrar - Registers domains for customers.
- Second-level domain - Label directly below a TLD.
📝 All Generic and country domains in DNS MCQs
Q1. If a recursive resolver receives a DNS response with a TTL of 0 seconds, what is the most likely effect on subsequent queries for the same domain name?
📖 Explanation: A TTL of 0 signals that the data is no longer valid; the resolver must purge it from its cache right away. Consequently, any later request for that name will trigger a fresh lookup to an authoritative server, ensuring up‑to‑date information.
Q2. When a DNSSEC‑signed response fails validation, what response does the resolver typically return to the client?
📖 Explanation: DNSSEC validation ensures cryptographic integrity. If the signature cannot be verified, the resolver treats the data as suspicious and, per RFC 4035, returns a SERVFAIL to indicate a server‑side failure rather than fabricating an answer. This prevents the client from accepting potentially forged records while preserving the distinction from a true non‑existence response (NXDOMAIN).
Q3. An iterative resolver receives referrals from the root, then from the .com TLD, and finally from the authoritative server for example.com. If the total number of hops is denoted by , which statement best describes the relationship between and query latency?
📖 Explanation: In an iterative resolution, each hop is performed sequentially: the resolver contacts the root, then the TLD, then the authoritative server. Because each step adds network round‑trip time, the total latency is roughly the sum of the individual delays, so more hops increase latency rather than decrease it. The only way latency could drop is if later servers happen to be geographically nearer, which is not guaranteed.
Q4. Which of the following best contrasts recursive and iterative DNS queries?
📖 Explanation: A recursive resolver takes full responsibility for resolving the name, contacting root, TLD, and authoritative servers as needed, then returns the final answer to the client. In contrast, an iterative resolver returns the best information it currently has (often a referral) and expects the client or another resolver to continue the process. This fundamental distinction defines their behavior.
Q5. A large web service distributes its traffic using DNS round‑robin across four IP addresses. How does this load‑balancing method most likely affect average client latency?
📖 Explanation: Round‑robin DNS returns one of several IP addresses in a rotating fashion, which can direct clients to different server instances. While some clients may be routed to a nearby server, others might reach a more distant one, so the overall average latency tends to drop, yet the spread (variance) of latency values grows due to the nondeterministic assignment.
Q6. Which statement correctly distinguishes caching behavior between a stub resolver and a recursive resolver?
📖 Explanation: Stub resolvers, often part of the operating system, minimally cache negative responses (e.g., NXDOMAIN) to avoid repeated futile queries. Recursive resolvers, which perform full resolution, maintain caches for both successful (positive) and unsuccessful (negative) answers, respecting each record’s TTL. This distinction influences how quickly repeated queries can be answered locally.
Q7. When a client requests the address for www.example.com, which sequence of DNS zones is consulted according to the hierarchical model?
📖 Explanation: The DNS hierarchy starts at the root zone, which delegates control of top‑level domains. For www.example.com, the resolver first contacts the root server, receives a referral to the .com TLD servers, then queries those for the example.com zone, and finally obtains the www host record from the authoritative server for example.com.
Q8. A DNS query for mail.example.org encounters a CNAME pointing to mailhost.example.net, followed by an MX record for mailhost.example.net. Which ordered steps correctly describe the resolver’s actions?
📖 Explanation: The resolver first follows the CNAME to mailhost.example.net, then looks up the MX record for that canonical name. After obtaining the MX, it resolves the target host’s A (or AAAA) record to obtain the actual IP address. The final answer returned to the client includes the MX record and its associated address.
Q9. How does the Time‑to‑Live (TTL) value of a DNS record influence consistency during a zone transfer between primary and secondary name servers?
📖 Explanation: TTL defines how long a cached record is considered valid. When a primary server updates a zone, secondary servers must fetch the new data. A short TTL means caches expire quickly, prompting secondary servers to perform zone transfers more often, thereby keeping their copies more consistent with the primary. Longer TTLs delay updates, increasing the risk of stale information.
Q10. Which of the following best defines an authoritative name server?
📖 Explanation: An authoritative name server is the source of truth for a particular DNS zone; it stores the zone’s actual records and can respond directly to queries about those records without needing to query any other server. This contrasts with caching or recursive resolvers, which may rely on other servers to obtain the data.
Q11. When a client issues a DNS query over IPv6 instead of IPv4, what is the most likely effect on the resolution process?
📖 Explanation: DNS itself is agnostic to the underlying IP version; the same logical steps are followed whether the query travels over IPv4 or IPv6. The only variation is the transport protocol (UDP/TCP) and the address family of the servers involved, but the resolution algorithm and number of hops remain unchanged.
Q12. Deploying DNS‑over‑HTTPS (DoH) primarily impacts which aspect of user privacy?
📖 Explanation: DoH encapsulates DNS queries inside HTTPS, encrypting the payload and making it indistinguishable from regular web traffic to external observers. While the resolver still receives the plaintext domain name (so it can answer the query), eavesdroppers such as ISPs or Wi‑Fi providers cannot easily infer which domains are being looked up, enhancing privacy.