Information & AI guides →

Information & AI · Networks and the Web

Networks and the Web: read URLs, DNS and HTTP separately

Edited by: Hitoiki Arcade / Hitoiki Learning team · Published: · References and presentation updated: · Editorial policy

When a web page will not open, grouping URLs, name lookups and server responses into one internet problem can hide the useful evidence. Communication combines rules with different roles. Connect each observation to the stage at which it occurs before choosing an explanation.

This guide moves from URL components to name resolution and HTTP responses. One computer can access one page while failing to access another. The examples develop a way to interpret a particular result without making claims about the entire network.

Give URL components separate roles

In https://example.org/data?q=1, https is the scheme, example.org the host, /data the path and q=1 the query. Identifying these components makes it possible to describe what changed: the destination, the resource within it, or additional identifying information.

A path that looks like a file location need not correspond directly to a physical server file. Nor should the case-insensitive rule for hosts simply be applied to every path. URL syntax and a service's interpretation of its resources operate at different levels.

URL means Uniform Resource Locator and URI means Uniform Resource Identifier. A URL identifies a resource by location. A label identifying a destination is not proof that a trip succeeds; likewise, a valid identifier and successful retrieval are separate observations.

Try a quiz on Networks and the Web

Each section link opens a quiz on related topics. Questions may cover more than that section, so check the range and difficulty before starting.

Separate finding a name from retrieving a page

DNS looks up records associated with names. These can include host IP addresses, mail exchanges and other information. Obtaining an address is not itself the operation that retrieves a web page's content.

One name can be associated with several addresses. Treating a name as permanently identical to one machine makes changing or distributed services harder to understand. Ask which name and record type were queried so that the scope of the answer remains clear.

DNS means Domain Name System; DHCP means Dynamic Host Configuration Protocol. Name lookup and supplying a device’s address configuration are different jobs. Comparing consulting an address book with receiving your own address helps distinguish the mechanisms rather than memorizing similar-looking initials alone.

Use the fact that a response arrived

In HTTP, a client sends a request and a server returns a response containing a status code. A 404 reports that a current representation was not found or that the server declines to disclose one. Receiving that response does not prove that the entire network is disconnected.

A 200 indicates request success, not that every statement in the content is true. A 503 can indicate that the server currently cannot handle the request. Status codes classify communication results; they do not independently diagnose every device failure or establish the credibility of a page.

HTTP means Hypertext Transfer Protocol. A protocol supplies rules for exchanging and interpreting messages. A response’s communication status and the credibility of facts in its body remain different checks, even when the exchange itself succeeds.

Configuration, resource identity and message boundaries differ

DHCP supplies a device’s network configuration, including an IP address; DNS looks up information associated with names. URLs add other distinctions: in /manual#install, /manual is the main resource path and install is a fragment identifying part of a representation. Separate what is configured, what is queried and which resource or part is identified.

Receiving bytes also requires a rule for identifying complete application messages. TCP provides a reliable, ordered byte stream, so sending ABC and DEF separately need not yield two matching reads. The application supplies framing such as lengths or delimiters. UDP has datagram message units, but does not itself guarantee delivery and ordering. Having boundaries and receiving everything in sequence are different properties.

TCP means Transmission Control Protocol; UDP means User Datagram Protocol. A stream is a continuous sequence of bytes and a datagram is a message unit. Identify both the unit delivered to the application and which layer handles ordering and delivery instead of comparing the protocols only through an impression of speed.

Read cache storage and reuse as separate decisions

Caching stores responses for later reuse. Cache-Control: no-store prohibits storage, whereas unqualified no-cache requires successful validation before reuse. Validation checks whether the held representation can still be used; it is not another name for prohibiting storage. Similar directive names should not replace an understanding of their actual conditions.

A URL returning Japanese or English can require a different representation even when the URL matches. Vary: Accept-Language includes the language request condition in cache selection. Compare the stored representation, the original request and the new request to understand why the same destination does not always justify reusing the same body.

Storage and reuse are different checks

Storage and reuse are different checksTwo stages ask whether a received response may be stored and whether a stored representation may be reused. A later condition check separates storage from reuse. No real HTTP response or directive result is supplied.Read storage rulesStored responseRead reuse rulesMatch request conditions
Being stored does not by itself permit reuse for a later request. Read request conditions and required checks separately.

TRY & READ

Check your understanding with examples

Compare the choices before opening the answer and explanation. Reading an example does not save a test answer or score.

Example 1 · Networks and the Web

What is the host in https://example.org/data?q=1?

  1. /data
  2. q=1
  3. example.org
  4. https
Read the answer and explanation

Answer: example.org

The host is example.org, within the URL’s authority component. The path /data and query q=1 have separate roles in identifying the requested resource. Two URLs using the same host but different paths can consequently request different resources.

Read reasoning and more detail

When reading the URL, distinguish the destination host from what is requested there rather than treating the entire remainder as one host name.

Sources for this example

Example 2 · Networks and the Web

Which system is central to looking up a host IP address from a domain name?

  1. DNS
  2. TCP
  3. DHCP
  4. HTTP
Read the answer and explanation

Answer: DNS

DNS retrieves resource records associated with a domain name, including records that provide IP addresses. A resource record is a unit of information connected to the name; other types can describe mail exchanges. DNS lookup is not itself the retrieval of a web page’s contents.

Read reasoning and more detail

Successfully obtaining an address and successfully receiving the intended page are therefore separate checks. DNS means Domain Name System. Looking up an address-book entry and delivering something to that address are different jobs; likewise, name lookup is separate from transferring page content.

Sources for this example

Example 3 · Networks and the Web

An HTTP 404 response is received. Which interpretation is appropriate?

  1. The entire server is overloaded
  2. The responding server could not be reached
  3. It always establishes missing user authentication
  4. The target representation is not found or is not disclosed
Read the answer and explanation

Answer: The target representation is not found or is not disclosed

A 404 response concerns the target resource: the server did not find it or is unwilling to disclose its existence. Receiving that response does not establish that the whole network is disconnected. Check the requested host, path and resource conditions.

Read reasoning and more detail

Failure to contact a server and receiving a response that does not provide a particular resource are problems at different stages of the exchange.

Sources for this example

Sources for this guide

Continue with a quiz

Topics: Networks and the Web. Range: Everyday knowledge, Broader knowledge, General knowledge. Difficulty: Basic, Standard. These are selected initially. You can change these on the setup screen.

Try this topic in a quiz

This opens the setup screen with this subject and topic selected. Check the mode and question count before you start.

A test shows explanations after submission. Continuous challenge explains each answer. Review uses unresolved mistakes recorded on this device. Casual mode does not update learning records.

Enjoyed it? Share the link

Only the page address is shared. Your saves and results are not included.

Link to this page