Router Behavior When Resolving a URL on the CLI

Explain the role of DHCP and DNS within the network
Answer Correct answer: D — With default DNS lookup enabled, the router sends a query to its configured DNS server to resolve the entered URL to an IP address.

What does a router do when it is configured with the default DNS lookup settings, and a URL is entered on the CLI?

  1. It continuously attempts to resolve the URL until the command is cancelled.
  2. It initiates a ping request to the URL.
  3. It prompts the user to specify the desired IP address.
  4. It attempts to query a DNS server on the network. Correct Answer

Community Votes

D
100%

100% of anonymous learners picked answer D. Votes are pick records left by other test-takers — they are not the verified answer.

Community Insight

The router resolves names via DNS only when 'ip domain-lookup' is enabled and a name server is configured; otherwise the CLI treats the string as an invalid command.

When 'ip domain-lookup' is on (default) and a hostname/URL is typed at the CLI, the router treats it as a name to resolve and queries the DNS server configured with 'ip name-server'. If no server is set or resolution fails, it eventually times out.

Thinking the router pings (B) or prompts for an IP (C). It issues a DNS query; ping happens only after resolution, and no prompt appears.

Community Discussion (3 comments)

379c9f6 👍 4
Good job to reach 1321.
[Removed] 👍 2 Selected: D
D is correct The router will try to resolve the URL to an IP address by querying a DNS server configured in its DNS settings. If successful, it will use the resolved IP address for further processing. If unsuccessful, it may continue to retry or eventually timeout depending on the configured settings.
Nethach 👍 3 Selected: D
I LOVE THIS QUESTION Translating "{typo}"...domain server (255.255.255.255)

Comments & Corrections

No comments yet — spotted an error or have a note? Share it below.

Log in to comment, report an error, or add a note about this question.

Submitted for moderation before publishing. Keep it helpful and respectful.

Expert Analysis

Why the Answer Is Correct

D is correct. With default DNS settings ('ip domain-lookup' enabled), entering a URL at the CLI makes the router query its configured DNS server to translate the name into an IP address.

Why the Other Options Are Wrong

A is wrong: the router does not loop forever — a failed lookup times out. B is wrong: a ping is a separate action that occurs only after resolution. C is wrong: the CLI does not prompt for an IP; it either resolves or returns an error.

Community Comment Notes

The vote is D (100). Commenters note the router queries the DNS server from its DNS settings and retries or times out depending on configuration.

Official Reference

Related Analysis

Practice All 200-301 Questions

Access 220 questions with complete answers and detailed explanations.

View Full 200-301 Practice Test →

← Back to 200-301 Study Guide