The Tadoru Manual
These pages are the manual of Tadoru v0.1.0-dev.114.
This is the manual for running Tadoru. It has two parts. The server says what the settings mean, what the commands do, what the HTTP API answers, and what to do about a refusal. It assumes you have a server to run and questions about it. The console is for whoever uses the web console of a Tadoru server. It says what each page shows, how to do a task, and what an error means. It assumes that you have a Tadoru server with its console turned on. Turn on the web console says how.
This is not the design. The design tree is for whoever changes the code. It holds the decisions, what was rejected, and what each phase of the work adds. It lives in a repository of its own, and this manual does not link into it.
The server
Section titled “The server”The pages of the server are in server/.
| Page | Read it for |
|---|---|
| Install and run | A container, the systemd unit, a checkout, and where files land |
| A home network, start to end | One path for a house: listen, resolve, block, console, router |
| Configuration | Every setting, its default and its range |
| The command line | Every command and flag |
| Accounts | Roles, the setup token, passwords, tokens and sessions |
| Console and remote API | Turn on the web console, the API for a script, and a proxy |
| API Reference | Every route, with a call you can run |
| Blocking | Name a blocklist, allow a name, and read the counts |
| Clients | Name a client, and which entry wins |
| Local Zones | Write a zone this server answers itself |
| The DNS client | Ask any DNS server a question, and copy an answer into a zone |
| DNSSEC | What AD, CD and a failed signature mean to a client |
| Encrypted DNS | DNS over TLS and HTTPS, a certificate, and a reverse proxy |
| The query log | Reading the query log, privacy and retention |
| Logs and metrics | Read the log, choose what it holds, and every metric |
| Backup and restore | Backup, restore, and what a restore replaces |
| The databases | What each SQLite file holds, its tables, and what a backup does |
| Troubleshooting | Find a problem by its symptom, and what to do about it |
| Glossary | The words that this manual uses in its own way |
These pages are for whoever builds, measures or changes the server:
| Page | Read it for |
|---|---|
| Build and test from source | Build from source, tests, lints and fuzzing |
| The crates | What each crate of the workspace holds |
| Measure how fast it answers | Measure how fast your own hardware answers |
| Supported RFCs | Every RFC that the server follows, and how much of it |
Start at Install and run. It ends where Configuration begins.
What is generated
Section titled “What is generated”Some pages of the server are rendered from the code rather than written beside it. server/api.md is one. It comes from
the schema document that the server serves at /api/openapi.json, and the handlers produce that document themselves. If
the page here is not what the build renders, a test fails.
Every route, parameter, field and status that the page lists is one this build declares. The words next to them are the doc comments of those handlers, so they are as true as the comments are. No test checks a description against what a handler does. No test proves that a handler declared every answer it can give.
A generated page says so at the top. Do not edit it by hand, and do not let a formatter touch it. A plain test run fails on an edit rather than undoing it. The fix belongs in the code that the page comes from.
Some written pages of the server are held to the code by tests. Each test holds a part of a page, and no test holds a whole page:
| Page | What a test holds |
|---|---|
server/configuration.md |
Every setting of the configuration files, with the default that the code uses |
server/cli.md |
Every command, every flag under its command, and each example of tadoru dig |
server/crates.md |
A row for each crate of crates/, and the count of the crates |
server/databases.md |
Every store and every table, and the journal, the sync and the delete of each store |
server/observability.md |
Every metric that the server records |
server/zones.md |
The record types, directives and limits, the layout, and each tadoru zone command it names |
server/backup.md |
The backup boundary, a downgrade, a pending change in an archive, and a frozen journal |
server/benchmarks.md |
Each command and flag of bench/run.sh that an operator runs |
server/troubleshooting.md |
The words of some refusals, where a test makes the refusal and compares them |
server/rfcs.md |
The count of its rows, which the README.md of the repository says |
server/query-log.md |
Every source label that a row of the query log can hold |
A setting, a command or a crate that arrives without its row fails the build. Tests read every page of the server and
this index too. No page links into the design tree or names a decision. Every relative link and anchor of both parts
leads somewhere. No test holds the rest of server/install.md, server/accounts.md, server/console.md,
server/blocking.md, server/clients.md, server/dns-client.md, server/dnssec.md, server/encrypted-dns.md or
server/building.md.
What no test checks is the prose: a range, a unit, or a sentence about what a setting changes is as true as somebody made it. The list is the code’s, and the words are ours.
Reading a page
Section titled “Reading a page”Every page of the server follows the same rules:
- A command you can copy is a command that ran. Every example in
server/api.mdran against a release build. - An example stands alone rather than continuing the one above it. Two of them can both answer with revision 2.
- A value in an example is real in shape rather than real in fact. An identifier in a path has the length and the alphabet of a real one, and it names nothing on your server. Such an example answers 404 until you put your own identifier in, and the setup token works the same way.
- A default named on a page is the default the code uses. A value outside a named range is refused, with a message naming the setting.
- A path in an example is the one the commands in
server/install.mdset up, under./data. With no flags your paths are the platform ones, whichserver/install.mdalso lists.
The console
Section titled “The console”The pages of the console are in console/.
| Page | Read it for |
|---|---|
| Setting Up the First Administrator | The first account of a new server, with its setup token |
| Logging In and Out | Log in, log out, and the end of your session |
| Moving Around the Console | The sidebar, the top bar, the blocking switch, the theme and error pages |
| The Overview | The health of the server, the counts of the queries and the time range |
| The Query Log | The queries that the server answered, and their filters |
| The Cache | What the server keeps in its cache for one name |
| The Server Log | The recent lines of the server log, by level and time |
| The Blocklists | Each blocklist, its state, its rules and its last read |
| The Rules | The names that you block or allow, and the patterns |
| The Devices | Each device, its group, and what each group blocks |
| The Zones | The local zones of the server, with their state and records |
| Search Lists | Which list or rule blocks a name for a device |
| The DNS Client | Ask a DNS server one question, and read its answer |
| The Settings | The settings forms of server.toml and node.toml, and a save |
| The History | Every revision of the settings, and a rollback |
| The Accounts | Make, change and remove accounts, and their tokens |
| Your Account | Your own password and your own tokens |
| Running the Console from Its Source | Run the console with pnpm dev against a local server |
| Building and Testing the Console from Its Source | The tools, the checks, the build and the API types |
Start at Setting Up the First Administrator on a new server, or at Logging In and Out on a server that has accounts. A page joins this table in the release that adds the part of the console it describes.
Contributing to the console
Section titled “Contributing to the console”Whoever changes the console reads Tadoru Console, the README of the console, first. A change that a user sees ships with its manual page in the same commit.
License
Section titled “License”Apache License 2.0, as LICENSE at the root of the repository and console/package.json state.