Names and automatic setup: DNS and DHCP

Unit 3 of 5 in Networking fundamentals.

You will be able to describe what DNS and DHCP each do when a machine joins a network and what protects each.

Lesson

DHCP: how a new machine gets set up

When a machine joins a network it needs an address and a few settings. The Dynamic Host Configuration Protocol provides configuration parameters to hosts. It has two parts: a way to deliver host-specific settings from a server to a host, and a way to allocate network addresses to hosts.

DHCP can allocate temporary or permanent addresses. In the dynamic case a client requests the use of an address for some period of time, and the address can be reused afterwards, which is why a device's address can change.

DNS: names to answers

Once a machine has an address, it can look up names. The goal of domain names is to give resources names that work across different hosts, networks and organizations. The system has three parts. The domain name space and its records hold the data. Name servers hold information about parts of the tree and point to other servers. Resolvers are programs that extract information from name servers on behalf of clients, either answering directly or following referrals from one server to the next.

The authoritative data is organized into zones, and a zone is copied to several name servers so that service is redundant.

What can go wrong, and what protects it

The DNS protocol answers questions. It does not, on its own, prove that an answer came from the real owner of a name. DNSSEC adds origin authentication and integrity protection for DNS data, as well as a way to distribute public keys. The same document says these extensions do not provide confidentiality.

Confidentiality is a separate fix. DNS over HTTPS defines a way to send DNS queries and get responses over HTTPS, so queries travel inside an encrypted web connection and cannot be read on the way. Integrity and privacy are two different problems with two different tools.

Why defenders watch both

Both are control points. A machine that gets its settings and name answers from the wrong source is quietly sending its traffic to the wrong place, so defenders check which DHCP and DNS servers a network uses and watch for unexpected changes. The labs in this unit show the exchanges on the wire so you know what normal looks like.

Key points

Sources

Practice in the labs

Watch DHCP set up a machine, protect your DNS queries, then lint a zone file the way an engineer would.

Knowledge check

  1. What does DHCP give a new machine? Answer: Configuration settings and a lent network address. RFC 2131 says DHCP delivers host-specific configuration parameters and allocates network addresses, usually for a period of time.
  2. What does DNSSEC add to DNS? Answer: Origin authentication and integrity protection for DNS data. RFC 4033 says DNSSEC provides origin authentication and integrity protection, and explicitly that it does not provide confidentiality.
  3. Which tool protects the privacy of DNS queries on the way to a resolver? Answer: DNS over HTTPS. RFC 8484 defines sending DNS queries and responses over HTTPS, so they travel inside an encrypted connection.

Back to the syllabus or see all classes.

Related