roadmap BUILT

384. Nothing here resolves a hostname, and in a capability system the resolver is a grant

Filed 2026-09-05 as an unnumbered proposal, written after asking whether a milestone covered curl or wget; numbered 2026-09-19 by milestone 433's drain of the proposal pile. Premise re-read against the tree on 2026-09-19 and still true, with one path correction: the smoltcp 0.14 dependency moved from user/Cargo.toml to components/Cargo.toml when milestone 175 split the program directories, and socket-dns is still not among its features. Nothing in crates/ or components/src/ resolves a name, and the DHCP client still receives a nameserver nothing reads. The one thing that changed since filing supports the proposal rather than undercutting it: milestone 298 retired the multicast DNS responder on 2026-09-15, and its block cites this proposal as the reason the link-local responder was not the answer here. (Number provisional until the merge queue lands it.)

smoltcp already ships the socket; enabling it is a feature flag and a program.

Built 2026-10-06: the resolver, the grant and the gate on three architectures

A second lane (lane/384-resolver, PR #1760) built what the first one stopped at, after calef ruled Fork 1 (§248 (the name resolver is its own confined program)). Forks 2 and 3 were built on the first lane's leaning answers. calef ratified both on 2026-10-06 (UTC). §252 (a resolver grant is one zone per client badge) records them.

Reuse: the parser is domain_name_system, kept after the 2026-10-04 survey of six crates in notes/name-resolution.md (§46 (thin primitives or whole subsystems; we write everything in between)). The resolver program and its protocol are this tree's shapes (network_time_client's endowment, the socket contract's page, the system log's badge registration), so nothing outside the tree fit; hickory-resolver and domain's stub need tokio, whose poller the PAL lacks.

Partial as of 2026-10-04: the wire format and an end-to-end test, the forks not taken

A lane (lane/384-name-resolver, PR #1634) built the part that is not a fork and stopped at the three that are. notes/name-resolution.md has the whole account and the proposal.

The gap, measured

user/Cargo.toml builds smoltcp 0.14 with alloc, medium-ethernet, proto-ipv4, proto-dhcpv4, socket-udp, socket-tcp and socket-dhcpv4. socket-dns is not among them, and nothing else in crates/ or user/src/ resolves names: the only greps that match "resolve" are about capability names and generational tables.

So a program cannot turn a hostname into an address. That is upstream of everything else a network client needs. curl with a perfect HTTP implementation and a perfect TLS stack still cannot fetch https://example.com, and DHCP already hands us a nameserver we throw away.

It is also upstream of two proposals and two milestones. The TLS proposal's remaining consumers are milestone 99's clone half and milestone 174, and both of those reach a host by name.

Why this is worth its own piece rather than a line in a bigger one

Because the interesting question is not the resolver, it is who holds it, and that question does not arise on Unix.

On Unix, name resolution is ambient. /etc/resolv.conf is readable by every process, getaddrinfo is in libc, and any program can resolve any name against whatever the system decided. A program that should only ever talk to one host can silently look up any other, and the first sign is usually in a packet capture.

Here it should be a capability. "Which resolver may this program use, and for what" is a grant, the same shape as every other authority in this system:

This is the same observation as the trust-store one in milestone 387, design/roadmap/0387-a-tls-stack-and-which-one.md, and the two belong to the same family: the ambient parts of a Unix network client are exactly the parts a capability system should make explicit. It is also a small, concrete instance of §145's argument, which is otherwise stated at the scale of a whole operating system.

What it would take

What it is not

It is not curl. A resolver plus HTTP plus TLS is three pieces and this is the first. There is no consumer today for any of them, which is why this is a proposal.

And it does not need mDNS. The multicast DNS responder answered for names on the local link, which is a different protocol solving a different problem, and reusing it here would have been a category error. It was retired on 2026-09-15 by milestone 298 (retire the multicast DNS responder and its two crates), in notes/mdns.md. Its general half is worth reading before writing a parser: DNS header, record and name decoding with compression pointers, Kani-proven not to loop or overrun, is in crates/multicast_dns_protocol at commit 0652c981 (git show 0652c981:crates/multicast_dns_protocol/src/lib.rs, with src/proofs.rs beside it).

BUGS

Follow-on

Index row

components/Cargo.toml builds smoltcp 0.14 without socket-dns, and nothing else in the tree turns a hostname into an address, so a program cannot reach a host by name even with a perfect HTTP implementation behind it. The nameserver DHCP already hands us is thrown away. The work is worth its own block because the interesting question is not the resolver, it is who holds it. On Unix name resolution is ambient: /etc/resolv.conf is readable by everyone, getaddrinfo is in libc, and a program that should only ever talk to one host can silently look up any other, with a packet capture as the first sign. Here it should be a grant, which makes three things true that are not true on Unix. A client granted a resolver that answers for one domain cannot be induced to look up anything else whatever injection it carries. The resolver is itself a confined network client rather than a library linked into everyone. A program with no grant and a literal address still works. That is the same observation as the trust-store half of milestone 387's TLS fork, and a small concrete instance of §145's argument. What it takes: enable socket-dns, decide whether the resolver lives inside net_stack or as its own confined program holding a socket grant. The second is more in keeping with the tree and more expensive, so it is argued rather than assumed. Decide the capability's shape, which is the real design work, and read the nameserver DHCP already receives. It has a consumer now, milestone 801 (packages over the internet), whose package client fetches the distribution's index by host name. Built 2026-10-06: the resolver is its own confined program, and each client's badge is granted a zone it is judged against before anything is sent.