Foundations · Unit 11 · Lesson 2 of 2
Names, addresses, and ports
Separate finding a destination from reaching it and being allowed to use it.
Helpful before thisComputers and networks
After this lesson you can
- describe the different roles of DNS names, IP addresses, and transport ports
- explain what DNS caching changes and what it does not prove
- separate name resolution, routing, transport, and application authorization
A street address tells a delivery service where to go. It does not identify the department that should receive the parcel or decide whether the recipient may open it. Networking also separates several kinds of decision, although the postal analogy cannot capture caches, proxies, or changing routes.
The name is the starting point
Suppose a fictional browser opens library.example. A resolver helps obtain the requested DNS records. An A record contains an IPv4 address; an AAAA record contains an IPv6 address. Other types describe aliases, mail handling, or other information. DNS is a distributed database of typed records, not just one worldwide list of machines.
A resolver may already have an answer in its cache. Otherwise it can consult other DNS servers, following the naming hierarchy as needed. The authoritative service for a zone publishes its records; a recursive resolver helps clients obtain answers. These are roles, and one physical machine can perform more than one role.
An answer has context and a lifetime
A record’s time to live limits ordinary caching. Updating an authoritative record does not force every cached copy to disappear immediately. Different clients can temporarily use different addresses. Services can also intentionally return different answers for different locations or policies.
Therefore, record the name, record type, answer, time, and observation point when explaining a naming result. One address does not establish one physical server: load balancers and shared hosting can put many services behind it. Conversely, one service may use many addresses.
PredictThe library’s name resolves successfully, but a member cannot renew a book. Has DNS proved that the renewal service works?
No. DNS supplied naming information. A usable route, an accepting transport endpoint, a functioning application, and a permitted renewal are further questions. A correct first step does not establish the remaining steps.
Addresses and ports answer different questions
IP addressing helps network devices forward packets toward a destination. A route selects the next hop; DNS does not normally carry the later web request through its servers. The transport adds endpoint information. TCP and UDP each use port numbers, with separate namespaces. A destination address, transport, and port are more informative together than a port number alone.
TCP offers an ordered byte stream with retransmission and congestion control. UDP preserves datagram boundaries but does not itself guarantee delivery or ordering. Applications can add mechanisms above UDP; QUIC is one example. Neither a familiar port nor the use of TCP automatically provides encryption.
Finally, the application interprets the request
The library service reads an HTTP request and decides what it means. HTTPS protects the communication channel under TLS trust rules, while the application still decides which member may renew which book. A useful description keeps all four questions separate: What name was resolved? Where could packets travel? Which endpoint received them? What operation was permitted?
Check yourself
No timer. No penalties. Read the explanation and try again whenever you like.
This lesson’s questions have changed. Your reading progress is saved; review the updated questions.
-
A name has two address records. What is a sensible conclusion?
Show the answer
Correct answer: The name can lead to more than one address. Multiple records can support several destinations; they do not reveal the full backend design.
-
The DNS lookup succeeds. Is a book renewal authorized?
Show the answer
Correct answer: No conclusion yet; the application decides that separately. Reaching a named destination and receiving permission are distinct decisions.
-
A service uses TCP port 443. What does that prove about UDP port 443?
Show the answer
Correct answer: Nothing by itself; the transport namespaces differ. TCP and UDP endpoints are distinct even when the numeric port is the same.
-
One reader gets yesterday’s still-valid cached address. What should an explanation include?
Show the answer
Correct answer: The record lifetime and the time and location of the observation. A cached answer can remain usable under its caching rules while other resolvers have a newer answer.
Try it
- WriteFor the fictional service library.example, make four cards: name lookup, route, transport endpoint, and application permission. Put “DNS answered, but the app denied a renewal” beside the cards it supports. Do this entirely on paper.