Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 01 · Networking · Names into addresses · about 15 min to read

Play it as a journeyTutor comes with a plan

Write the telegram yourself

Write the Telegram Yourself
Write the Telegram Yourself · Open board

The code: teaching/code/dns_telegram.py: ~30 lines, stdlib only.

Before you start. DNS Resolution showed you a DNS lookup happening. DNS on the wire took its 29 bytes apart on the wire. Here you write those same 29 bytes yourself, by hand, and send them.

Lesson 4 of 44 in Networking

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • 2008: the reply nobody could prove was real
  • What your computer actually sends
  • Type it yourself
  • The reply is a stranger’s letter, not a return value
  • Doormen don’t apologize
  • How big a guess is the tag, really
  • One level up: be the resolver, not the client
  • Homework (break it on purpose)
  • The bigger homework: stop being a stub

Terms it explains: packet, port, UDP, byte, TTL, stub, authoritative, QR, RA, RCODE, 65,536, source port, 4.3 billion, DNSSEC, read, Add `read_name`, off.

Review Networking