Lesson 1 of 8 · About 4 minutes

From a name to a destination

Learn the concept.

The Domain Name System, or DNS, helps applications find information associated with a domain name. A common use is resolving a website name to an IP address.

Names and addresses are different

A domain is a human-friendly name. An IP address identifies an endpoint in the network addressing system.

Resolvers do the lookup

A recursive resolver can ask other DNS servers for an answer, then cache that answer for a limited period.

A result is not a trust decision

Finding an address does not establish that a website or its content is safe.

Field example01 / A

Put it in context

You enter training.example. Your browser needs an address before connecting. A cached answer may save another lookup, but it does not tell you whether the training is legitimate.

SEE IT UNFOLD

Follow the lookup, then the connection

Follow the sequence, or move one step at a time.

Read all 4 steps
  1. Ask about a name

    The device needs an address associated with a name.

  2. Resolve the name

    The resolver uses a valid cached result or asks DNS servers. Those additional servers are omitted here.

  3. Return the record

    The resolver returns an example address to the device. This documentation address is not a target.

  4. Connect separately

    The device can now attempt a separate connection to the server. Web traffic does not pass through the DNS resolver.

SEE THE IDEA

A name becomes a destination

Simplified lookup for the fictional name training.example.

  1. Your device

    Asks for an address associated with training.example.

  2. Recursive resolver

    Uses a valid cached answer or asks DNS servers.

  3. Address returned

    Example answer: 192.0.2.40. Your device can then attempt a connection.

An uncached lookup can involve root, top-level-domain, and authoritative servers. The resolver returns the answer to the device; website traffic is a separate connection.
Read the visualDoes getting an address mean the website is trustworthy?

No. DNS resolution finds records associated with a name. It does not endorse the site or its requests.

Make a decision.

Use what you just learned. A correct answer lets you save this lesson to your progress.

Take this with you.

DNS helps you find a destination. It does not decide whether you should trust it.

Follow it in Packet Journey

Watch a request cross a 3D network, then fix five network problems. A free ten-minute activity with a diagram view.

Play Packet Journey →
Read the original sources
YOUR LEARNING SPACE