The Settings
The pages under “Settings” in the sidebar show the settings files of the server. A settings file is
a TOML file on the server that tells it how to work. The DNS page shows server.toml, which every
node shares. A node is one Tadoru server. The This node page shows node.toml, which holds the
settings of one node. The Blocking page shows the single settings of blocking.toml, which every
node shares. The History page shows each change of the files.
How a settings form works
Section titled “How a settings form works”Each settings page is a form. From top to bottom, the form shows these parts:
- The header.
- The tabs. Each tab holds a group of sections, and each section holds its settings.
- The save bar, while you have changes.
The form reads the file at two times: on open, and after a click on “Read again”. It does not read again by itself.
The header
Section titled “The header”The header gives the name of the page and the file that the page shows. On the right is “Read again”. Click it to read the file again, for example after somebody changed it on the server.
A revision is one saved version of all the settings files of the server. The number goes up by one at each change. The running revision is the one that the server uses now. A change of any settings file makes a new revision. The header does not show the revision. To see who made each revision and what it changed, open the History page (The History).
The tabs
Section titled “The tabs”The sections of a form are in tabs. The DNS page has five tabs: “Resolving”, “Cache and DNSSEC”, “Safety”, “Query log and privacy” and “Zones”. Click a tab to show its sections. The form opens on the first tab.
The address of the page keeps the tab that shows, such as /settings/dns/?tab=privacy. You can
copy this address to open the page on that tab. The Back button of the browser does not go back
through the tabs. It leaves the page.
With the keyboard, move to the list of tabs with Tab. The left and right arrow keys move between the tabs. Press Enter or Space to show the tab.
On a phone, the list of tabs is wider than the screen. Swipe the list to the side to see the other tabs.
A tab can show a mark after its name:
- A pencil: the tab holds a change. A screen reader says “Has changes”.
- A red warning sign: a setting on the tab has an error. A screen reader says “Has an error”.
- A yellow question mark: a setting on the tab has a conflict with another change. A screen reader says “Has a conflict”.
If a tab holds more than one of these, it shows the first in this order: the error, the conflict, the change.
Find a setting
Section titled “Find a setting”To find a setting without a look through the tabs, open the search box with Cmd+K on a Mac, or
Ctrl+K on another computer, or click “Search” in the top bar. Type a part of the label, of the short
text under it, of the help that its info button opens, or of the name of the setting in the file,
such as ns_ttl. Then pick the setting.
Moving Around the Console tells more about the box.
The page opens on the tab of the setting. The setting moves to the middle of the screen, and the focus goes to its input. For a viewer, and for a setting that the console only shows, the focus goes to the whole setting. The background of the setting shows in gray for a moment, then fades. If your computer asks for less motion, the gray stays for the same time with no fade. The box also finds “Password of the PKCS #12 file” and “Proxy password”, which are no settings of the file. The focus then goes to the first button of the row where the state of the password is in, else to its whole row.
The address of the page then holds the tab, such as /settings/dns/?tab=zones. An address that
also names a setting, such as /settings/dns/?tab=zones&setting=zones.ns_ttl, opens that
setting in the same way.
On the Blocking page, “IPv4 address of the answer” and “IPv6 address of the answer” show only
when “Answer to a blocked name” is address. Else the search box opens the section “The answer”
in place of the address.
A setting
Section titled “A setting”Each setting shows these parts, from top to bottom:
- The label, such as “Retries after a failure”, with an info button beside it.
- The value, in a field that you can change.
- A short text: one sentence that says what the setting does.
- The limits and the default, such as “From 0 to 10. Default: 2.” A list says how many entries it takes, such as “Up to 64 entries.”. A text field says how many characters it takes.
The info button opens the help of the setting: what it does, the terms that it uses, and often an example of when it matters. Click or tap the button, or press Enter or Space while the button has the focus. On a phone, the help opens above the button where it has room. To close it, press Escape, click the button again, or click outside the help. A click on the label puts the cursor in the field, as before. A few settings say all they need in the short text, and they have no button.
On a wide screen, each setting is a row of two columns. The label, the short text, the limits and an error are on the left. The field is on the right and fills the rest of the row. A thin line separates two settings. On a narrow screen, such as a phone, the parts stand one under the other, in the order above.
The kind of field depends on the setting:
- A switch turns the setting on or off.
- A list of words, such as
forwardandrecurse, gives the choices of the setting. - A number field takes a whole number. A unit, such as “seconds”, stands after the field. Two size settings also show the size in words, such as “64 MiB”.
- A text area takes a list, with one entry on each line. Blank lines do not count.
- A text field takes text.
If a number field holds text that is not a whole number, the field turns red and says “Enter a whole number”. A number past 9007199254740991 says “This number is too large”, because the console cannot send it exactly. The form checks only the shape of a value. The server checks the limits at the save of the change. The limits and the defaults come from the server, so they are always the ones of the server that runs. If the console cannot read them, a line above the settings says “The console cannot read the rules of the server. Limits, defaults and restart marks are missing.”. Reload the page to try again.
If the file leaves a setting out and the setting has no default, the field says “Not set”. A list of words then starts on “Not set” too. If you empty such a field, the form counts no change.
A few settings with no default take the value of another setting while the file leaves them out. A line under the limits then names that setting and its value, such as “Not set, so it takes the value of “Wait for one upstream”: 2000 milliseconds.“. The line follows a change of the other setting before the save. It does not show while the other field is empty or does not hold a whole number.
Some settings are a list of entries, such as “Forwarding by name”. Each entry is a row with its suffix and one line that says what it does. See Lists of entries.
Some lists of addresses have rows of “Allow” and “Deny”, such as “Who can use the resolver”, “Trusted proxies” and “Trusted API proxies”. See Allow and deny rows.
If the server sends a setting that the console does not know, the form shows it in the last tab, “Other settings”. The tab shows only when there is such a setting. That tab shows the name and the value, and you cannot change them there. A newer server can add a setting before the console knows it.
Use the default
Section titled “Use the default”If a setting holds another value than its default, “Use the default” shows under its field. The switch “Blocking” of the Blocking page is the one exception: turning it on puts it back to its default.
- Click “Use the default”. The field then shows the default, and a line says “The save puts this setting back to its default.”. A setting with no default says “Not set”, and the line says “The save takes this setting out, so it is not set.”.
- Save the changes as usual. The review list shows “The default” as the new value. The server takes the setting out of the file, so a later release can bring a new default. A setting with no default, such as “Node name”, goes back to no value.
To keep the value instead, click “Keep the value” before the save.
Your changes
Section titled “Your changes”When you change a setting, a mark in the main color shows at its left edge. A screen reader says “Changed”. If you change the value back to the value of the server, the mark goes away.
While you have changes, the save bar stays at the bottom of the page. It says how many changes you have, such as “2 changes”. The count holds the changes on every tab. Your changes stay when you go to another tab.
To drop your changes:
- In the save bar, click “Discard”.
- The console asks “Discard 2 changes?” Click “Discard” again.
The form then goes back to the values of the server.
To save your changes, see Review and save.
Do you have changes and click a link in the sidebar or the user menu, or the Back or Forward button of the browser? Then the console asks “Leave this page?”. Click “Leave” to go and lose the changes. “Log out” asks the same question. A reload or a close of the browser tab gets the question of the browser. A move to another tab of the same page does not ask.
Review and save
Section titled “Review and save”To save your changes:
- In the save bar, click “Review and save”. The button waits while a field has an error.
- The review “Review your changes” opens in a panel at the right side of the page. On a phone, it rises from the bottom. It has one row for each change: the name of the setting, the old value and the new value. On a phone, the name of the setting is on its own line, over the two values. A value too long for its column goes on to the next line. A list shows one entry on each line, and the next lines of a long entry are set in a little.
- The server checks the changes at once, and saves nothing. Above the list, the review says “Checking the change with the server”, then gives the answer. The check before the save tells what each answer means.
- Read the list. Click “Back” to go back to the form and keep your changes.
- Click “Save changes”. The review says “Saving” until the server answers. Until then, nothing closes the panel.
The console sends all the changes in one request. The server writes them as one new revision.
The check before the save
Section titled “The check before the save”The check runs every test of the save, and makes no revision. The answer shows above the list:
- “The server accepts this change.” The save passes the same tests. One test is left: the server opens a new address only when it saves. So an address that another program uses passes the check, and the save refuses it.
- “The server refuses this change.” The words of the server show under the row of the setting, in red. Click “Back” to go to the field and change the value. The words then show under the field, and the tab of the field has a mark. A refusal that names no row shows its words above the list. If it names a setting of the page that you did not change, its label comes first, such as “Fixed client network: names a network, and ecs_send is off, …”.
- “Another change came first.” Someone saved a change after your last read. Click “Save changes”: the form reads the new revision and keeps your changes on top of it.
- “This answer can change.” A zone has a change of its records that the server has not finished. The save finishes it first, so the save can give another answer.
- “The server did not finish the check. You can still save the changes.” The server was busy for 20 seconds, or it did not answer. The cause shows under the line.
- Only the words of the server, above the list. The check stopped on another error, such as an error of the server. You can still save the changes.
- No line about a check. The server has no check. The save works as before.
- “The server already saved these changes as revision 42.” An earlier save of the same changes worked. A save gives that revision again, and nothing applies twice.
No answer of the check stops “Save changes”. If you save a refused change, the server refuses the save, and the form shows its words as for any refused save.
Some changes apply only after a restart of the server: a new count of UDP workers, a new address of the metrics, the stop of the metrics, a longer clock wait after a start, and a new device, another device or no device for an address that serves DNS. The row of such a setting says “Applies after a restart”. A line above the list gives the count of these settings, such as “1 setting applies only after a restart of the server”. On the This node page, the check then gives the list of the server: “After this save, 1 setting of This node waits for a restart of the server.” The rows follow that list. The server saves the value at once. It uses the value only after the next restart. After the save, a message at the edge of the screen counts the saved settings that wait for a restart, such as “1 saved setting of This node waits for a restart of the server.”. The overview says so too, until the server restarts.
The form saves only after a read of the file. Right after a save, it waits for its next read. If the server sent no revision with the last read, the form waits too. The review then says so. If the read does not come, click “Read again”.
After the save
Section titled “After the save”When the save works, a message says “Changes saved as revision 42”. Click “Show in History” in the message to open the row of that revision on the History page (The History). If you made a new change after the save, the console asks first, as it does for a link in the sidebar. The form shows your saved values at once, then reads the file again. The values of the server then replace them. A new save waits for that read.
If you turned off “Store the names” or “Store the clients”, another message can say “The query log still holds the names of 4,120 rows”. The old rows keep that data until the query log removes them. The console cannot clear the old rows yet.
If the save fails
Section titled “If the save fails”- The server refused a value. The words of the server show under the field, in red. The form opens the tab of that field and moves the cursor to the field. The form keeps all your values. Change the value and save again.
- The server refused the changes, but named no field of the form. The words of the server show
above the tabs. A setting of the other file counts as no field of the form. For example, the
This node page can show a refusal about a setting of
server.tomlthere. - Another change came first. The form reads the file again and keeps your changes on top of the new values. When another change comes first tells what happens next.
- The server did not answer, or it was still busy. A message shows the error. A line above the form says “The server did not say whether it saved your changes. Save them again to ask. The same changes cannot apply twice.”
- Another error, such as a server that stops. A message shows the words of the server. The form keeps your changes. Save again later.
Why a second save is safe
Section titled “Why a second save is safe”Each save sends a key: a random number that names this set of changes. The server keeps the outcome of each key. If the console sends the same changes with the same key again, the server does not apply them a second time. It gives the outcome of the first save.
The form keeps the key until it knows the outcome of the save. Did the server not answer? Then click “Review and save” and “Save changes” again. If the first save worked, the server says so, and nothing applies twice. If it did not work, the server tells you why.
The console also sends the same changes again by itself, two times, two seconds apart, while it does not know the outcome. A change of a value, or “Discard”, gives a new key at the next save.
Read again with changes
Section titled “Read again with changes”“Read again” keeps your changes. The form reads the file and puts your changes on top of the new values:
- A setting that you did not change shows the new value of the server.
- A setting that you changed keeps your value.
- If the server now has the same value as your change, the change goes away, because it is no change now.
If the file has a new revision, a message says “Another change came first. Your changes are kept on top of revision 43.”.
If somebody else changed the same setting to another value, the message adds “Pick a value for 1 setting.”. “When another change comes first” tells what to do.
When another change comes first
Section titled “When another change comes first”Somebody can save a change of the same file while you edit it. Then your save does not apply. The form reads the file again and puts your changes on top of the new values, by the rules of “Read again with changes”. A message says “Another change came first. Your changes are kept on top of revision 43.”.
A change of another setting keeps all your changes. Click “Review and save” again to save them on top of the new revision.
If the other change set a setting that you changed too, to another value, that setting has a conflict. A conflict is a setting that both changes set to different values. The form then does these things:
- It opens the tab of the first setting in conflict, and moves the cursor to that setting.
- The tab shows a yellow question mark.
- The setting shows two choices, each with its value: “Your value” and “Value of revision 43”. It has a yellow mark at its left edge. On a wide screen, the choices are in the right column, above the field.
- The save bar says “Pick a value for 1 setting first”. “Review and save” waits.
To settle a conflict:
- Read the two values.
- Click “Your value” to keep your change, or “Value of revision 43” to drop it.
- Do the same for each setting in conflict.
With the keyboard, press Tab to move to the choices, and use the arrow keys to pick one. You can change your pick until you save. If you type a new value in the field, the form counts it as your value. When each conflict has a pick, click “Review and save”.
What a viewer sees
Section titled “What a viewer sees”A user with the role viewer can read the settings and cannot change them. The form shows each
value as text, with its label, its short text, the button of its help and its limits. On a wide
screen, the value is in the right column. A switch says “On” or “Off”. The form shows no fields and no save bar.
If the read fails
Section titled “If the read fails”While the form reads the file the first time, it shows gray rows. If that read fails, the page shows the error and “Try again”. If a later read fails, the form keeps its values and shows the error above the tabs.
The DNS page
Section titled “The DNS page”To open the DNS page, click “DNS” under “Settings” in the sidebar. The header says “DNS” and “File server.toml, shared by every node”. A change on this page applies to every node.
The page has five tabs. Each tab holds these sections:
- “Resolving”: “Resolution”, “Upstreams”, “Message size over UDP” and “Forwarding by name”.
- “Cache and DNSSEC”: “Cache”, “DNSSEC” and “Client subnet”.
- “Safety”: “Rebinding protection” and “Rate limits”.
- “Query log and privacy”: “Query log and privacy”.
- “Zones”: “Zone defaults” and “Transfers and NOTIFY”.
The sections hold these settings:
- “Resolution”: how the server answers a name that it does not hold. It forwards the question to other resolvers, or it asks the servers of the DNS itself, from the root down.
- “Upstreams”: the tries, the waits and the limits of the questions that the server sends. A forwarder takes its wait and its retries from here while “Resolution” does not set them.
- “Message size over UDP”: the largest answer over UDP that the server sends to a client, and the largest that it asks other servers for.
- “Forwarding by name”: the names that go to a resolver that you pick, such as the names of your
router under
home.lan. - “Cache”: how much memory the cache uses, and how long it keeps an answer.
- “DNSSEC”: the check of the DNSSEC signatures. The list “Names not checked” holds the names that the server does not check for a time, because their signatures are broken.
- “Client subnet”: whether a query carries a part of the address of the client.
- “Rebinding protection”: the server refuses an answer from the internet that points to an address of your network.
- “Rate limits”: how many queries and connections one client address and its network can use.
- “Query log and privacy”: what the query log stores, and how long it keeps each row.
- “Zone defaults”: the values of a zone that nobody wrote a value for, such as the lifetime of its NS records.
- “Transfers and NOTIFY”: the secondary servers of the zones. A secondary server keeps a copy of a zone and answers for it too.
The forms of a forwarder
Section titled “The forms of a forwarder”“Forwarders” holds one entry on each line. “Servers” of a forward by name takes the same forms. An entry has one of these forms:
- A plain address, such as 192.0.2.1 or 192.0.2.1:5353. The server asks it over UDP, and over TCP for a long answer. Without a port, the server uses port 53.
- tcp:// and an address, such as tcp://192.0.2.1. The server asks it over TCP alone. Use it on a network that blocks UDP to the forwarder. After the save, “Forwarders” shows the port too, such as tcp://192.0.2.1:53.
- An encrypted entry: tls://, https://, quic:// or h3://, then the name on the certificate of the server, then its addresses in parentheses, such as tls://dns.example.net (192.0.2.1). These are DNS over TLS, DNS over HTTPS, DNS over QUIC, and DNS over HTTPS on HTTP/3.
An https:// or an h3:// entry also needs a path, such as h3://dns.example.net/dns-query (192.0.2.1). An h3:// entry asks over HTTP/3 alone, on UDP, and an https:// entry asks over HTTP/2 alone. So a resolver that answers both is two entries. If a network blocks UDP to port 443, an h3:// entry fails, and an https:// entry to the same resolver still answers.
A plain entry and a tcp:// entry are not encrypted, so anybody on the path can read the question. One list can hold plain and tcp:// entries together. The server refuses a list that mixes them with encrypted entries. The check of the review shows the refusal under the field before the save.
Add a public forwarder
Section titled “Add a public forwarder”“Add a public forwarder” under “Forwarders” fills the field from a list of public DNS services that this release of Tadoru knows. An operator and an admin see the button. It opens a panel at the right of the page, or at the bottom on a phone.
- Type a part of the name of a service or of its operator in “Find a service”. An empty box shows every service.
- Pick a service under “Services”. The part under the list says what the service filters, whether it checks the signatures of DNSSEC, and whether it sends a part of the address of a device to other DNS servers (“Client subnet”). “Facts as of” gives the date of these facts. “Privacy policy” and “Home page” open the pages of the operator in a new tab.
- Pick a transport under “Transport”. The first transport is encrypted where the service offers one. “In use” beside a transport says that the running configuration holds its entries already, in “Forwarders” or in a forward by name.
- Where “Forwarders” holds entries, pick under “What to do with the forwarders there now”. “Replace the forwarders” is picked first. “Add to the forwarders” keeps the lines there and adds each entry that the field does not hold yet. The add compares the text of each line. The list of services writes a plain entry with its port, such as 9.9.9.9:53, as the field shows a saved one. So an add of a service whose entries the field shows already adds nothing. Two texts for one server are two entries for the add. One is a line that you typed with no port, such as 9.9.9.9. Another is an encrypted entry with its addresses in another order, such as tls://one.one.one.one (1.0.0.1, 1.1.1.1). Then the field holds two lines for that server. Remove one of the two lines before you save.
- Click “Use this forwarder”. The entries under “These entries go into Forwarders:” go into “Forwarders”, and the panel closes.
- Click “Review and save” to send the change. Nothing changes on the server before that.
The server refuses a list that mixes plain and encrypted entries, and a list of more than 8 addresses. So an add can fail. The check of the review shows the refusal under “Forwarders” before the save.
The server refuses forwarders while “Resolution mode” is recurse. In that mode, the panel says so in a line, and “Use this forwarder” also sets “Resolution mode” to forward. The review then shows both changes.
If the list does not load, the panel says “The public forwarders did not load.” and gives the words of the server. Click “Try again”. A click on “Use this forwarder” with no service picked says “Pick a service.”. Cancel, Escape and a click outside close the panel at once, because it holds nothing but the search.
The wait and the retries of a forwarder
Section titled “The wait and the retries of a forwarder”A forwarder is a resolver that gets the questions in the forward mode, or through “Forwarding by name”. “Wait for one forwarder” and “Retries of a forwarder” in “Resolution” set how long the server waits for one forwarder and how many more times it asks after a failure. They stand right after “Forwarders”.
While a field of the two says “Not set”, the forwarders take the value of a setting in “Upstreams”: “Wait for one upstream” and “Retries after a failure”. The line under the limits names that value. A later change of the setting in “Upstreams” then reaches the forwarders too. In the recurse mode, the questions to name servers always wait “Wait for one upstream”. The recurse mode does not use the retries.
For example, with forwarders on your own network, set “Wait for one forwarder” to 500. The server then tries the next forwarder sooner, and a far name server still gets 2000 milliseconds. The wait must not be longer than “Deadline of a resolution”. If it is longer, the server refuses the change, and the field says why. To go back to the value of “Upstreams”, click “Use the default” under the field, and save.
Forwarders asked at once
Section titled “Forwarders asked at once”“Forwarders asked at once” in “Resolution” sets how many forwarders the server asks at the same time for one question. It stands after “Retries of a forwarder”. The value is 1 or 2, and 1 by default.
With 1, the server asks one forwarder at a time, and the next one only after a failure. With 2, most questions that a client waits for go to two forwarders at once. About one in ten still goes to one forwarder alone, so the server keeps measuring each one. With only one forwarder, 2 changes nothing. The server checks each answer, such as its DNSSEC signatures and its addresses for “Rebinding protection”. The first answer that passes goes to the client, and the server stops the other query. So a forwarder that is slow now and then costs the client less time.
The cost is more queries upstream. The forwarders get about twice the queries. The fastest forwarder and the one after it in the list both see most names, and they can tell that the two queries are one question. After the last forwarder comes the first. A row of “Forwarding by name” with more than one resolver asks two of them at once. Work in the background, such as an early refresh of an answer in the cache, still asks one forwarder at a time. The change needs no restart.
Parallel queries to a zone
Section titled “Parallel queries to a zone”“Parallel queries to a zone” is in “Upstreams”. It sets how many servers of a zone the walk asks at once on its first query to that zone. The walk is the work of the recurse mode: it asks the servers of the DNS from the root down. The field stands after “Ask a second server when slow”. The value is 1, 2 or 3, and 1 by default.
With 1, the walk asks one server at a time. If that server is slow, “Ask a second server when slow” can send the query to a second server. With 2 or 3, the first query to each zone goes to more than one address of its name servers at once. This is only for a question that a client waits for. The first useful reply wins, so a slow name server costs the client less time. “Ask a second server when slow” then does nothing for these questions, even where a first query goes to one server alone. Turning it off leaves the parallel queries on.
The walk asks fewer servers where it knows fewer addresses, or where few of its 64 queries are left. Now and then it asks one server alone, so it can measure that server. A query that carries a part of the address of the client always goes alone. So with “Send client subnet” set, the setting acts only on some queries. These are the queries to the root, to the top-level domains, to the public suffixes and to the zones of “Zones without client subnet”. The forward mode uses the setting only for the walk of a stub zone.
The cost is more queries upstream. The name servers get up to that many times the first queries, and a walk spends its 64 queries sooner. Work in the background, such as an early refresh of an answer in the cache, still asks one server at a time. The change needs no restart.
The size of a message over UDP
Section titled “The size of a message over UDP”Plain DNS limits a message over UDP to 512 bytes. EDNS is the extension of DNS for larger answers: a query that uses it says how large an answer it takes. The section “Message size over UDP” holds two sizes, in bytes, from 512 to 4096, and 1232 by default:
- “Largest answer over UDP” is the largest answer that the server sends to a client. A client that offers less gets that much, but never less than 512 bytes, and a client without EDNS gets 512.
- “Largest upstream answer” is the size that the server offers in each query to a forwarder, to a name server of the recurse mode, and to the name servers that the server asks to check a DNS-01 challenge when it gets a certificate with ACME.
An answer that does not fit arrives cut, and the side that asked asks again over TCP. So a lower size costs a second query over TCP for a large answer. A size above 1232 can lose an answer that the network cuts into fragments, or let an attacker forge one of the fragments. A larger “Largest answer over UDP” also lets a forged query send a larger answer to its victim, so raise it only where you know the clients. For example, on a network that drops large UDP messages, set 512. Each larger answer then goes over TCP.
A lost answer from upstream costs more. On a way that drops fragments, an answer from upstream that is larger than the way carries is lost. Here a question is what a device asked, with every query that the server sends for it. If a query over UDP that offers more than 1232 bytes gets no answer within its wait, each later query over UDP of the same question offers at most 1232. This holds for the same upstream server, for the next one, and for the name servers that the check of its DNSSEC signatures asks. A larger answer then arrives cut, and the server asks again over TCP.
So the question costs one wait, such as the 2000 milliseconds of “Wait for one upstream”. It gets its answer if the rest of “Deadline of a resolution” holds a query at 1232 and the query over TCP after it.
If “Deadline of a resolution” does not cut that wait short, the server also remembers the upstream server, by its address and port, for one minute. Each question in that minute, from every device, offers that server at most 1232 bytes from its first query over UDP, so it does not wait again. The memory ends after its minute, at a change of “Largest upstream answer”, and at a restart. A change of other settings keeps it. It ends at once when that server sends an answer over UDP that one packet of 1500 bytes cannot carry: more than 1472 bytes from an IPv4 address, or more than 1452 from an IPv6 address.
So a chance loss costs up to a minute of queries at 1232 to that server. A large answer from it then needs TCP, and if TCP does not finish inside the deadline, the question fails. The memory is about the server, not about the way to it, so a node with more than one outgoing address uses one memory for all of them.
If the only server of a zone does not answer at all, the first question waits at the setting, and then asks once more at 1232. With the default waits, the deadline cuts that second wait, so the server does not mark the zone as failing. A second question within the minute asks at 1232 at once. If the deadline does not cut that wait short, the server marks the zone as failing, and later questions to the zone fail at once for about a minute. A wait that the deadline cuts never marks a zone. With a setting of 1232 or less, one wait with no answer marks the zone as failing.
If the way loses even 1232 bytes, the question fails, because the server does not try 512. Queries over TCP and the encrypted transports keep the setting, because a stream is not cut into fragments, and a setting below 1232 stays as it is. Three cases have their own rule:
- The check of a DNS-01 challenge asks one query at a time, and each check starts at the setting.
- The refresh of a stub zone that learns its servers asks each of its questions up to three times. A try after a lost one offers 1232.
- An alias chain is a name that points to another name, which can point to a third. While “Check DNSSEC signatures” is on, a chain that starts on a route that forwards can lead to another route, such as a name of “Forwarding by name” or a stub zone. If the question already fell back to 1232, the part on that route offers 1232 too. A chain that starts in a stub zone or in a zone of this server starts at the setting again on each next route.
The metric dns_upstream_payload_fallbacks_total counts each start of the fallback to 1232: once
per question, and once per probe. A probe is a query of its own that the server sends to an upstream
that it stopped asking for a while. The metric dns_upstream_payload_marks_total counts each time
the server remembers an upstream server. Neither says if a later query was sent or answered.
Raise “Largest upstream answer” only where you know the way to the upstream carries it.
A denial with no SOA
Section titled “A denial with no SOA”A denial says that a name does not exist (NXDOMAIN), or that it has no record of the type asked. A server normally sends the SOA record of its zone with it, and the SOA says how long the denial holds. Some forwarders and servers send a bare denial, with no SOA. “Time to remember a bare denial” in “Cache” sets how long the cache keeps one. It stands after “Time to remember a failure”. The value is from 0 to 300 seconds, and 0 by default. With 0, the cache keeps no such denial, so a client that asks again sends the question upstream again.
These rules apply to the time:
- Only a denial with an empty answer section counts. An answer with no record and an NS set is a referral, and the cache does not keep it. An NXDOMAIN that carries the NS set of the zone above the name does count.
- “Longest time to keep an answer” caps it, and “Shortest time to keep an answer” does not raise it.
- A DNSSEC proof can end it sooner. A denial whose proof fails is a failure, kept for “Time to remember a failure”.
- With “Check DNSSEC signatures” on, a denial with no proof from a forwarder, or from the servers of a stub zone, makes the server ask for the SOA of the name, to find its zone. If that answer has no SOA either, the client gets SERVFAIL, as with 0, and nothing is kept.
- The cache never sends such a denial as an old answer, and a restart loses it.
- An NXDOMAIN with no SOA answers its own name alone, not the names below it.
- The Cache page shows such a denial with no line “Record of the zone (SOA)”.
The change needs no restart. A change that lowers the value, or sets 0, drops each such denial that the cache holds.
The risk: two resolvers that keep such denials and ask each other can pass one denial back and forth. Each copy lives for the setting at most, but each resolver gets a fresh copy from the other. So the denial can live with no end, and a name that comes into being stays denied. Keep 0 where this server forwards to a resolver that can forward back to it. Keep 0 also where another resolver that keeps such denials forwards to this one. Elsewhere, keep it short, such as 30 to 60 seconds.
A fixed client network
Section titled “A fixed client network”“Send client subnet” makes each query of the walk carry a part of the address of the client. The
servers of a zone can then pick an answer near the client. “Fixed client network” in “Client
subnet” names the network that a query carries for a client that sent no client subnet of its own.
It stands after “Send client subnet”. Put one network on each line, at most one for IPv4 and one
for IPv6, such as 93.184.216.0/24. The list is empty by default.
The list is for a server whose walk leaves through a network that is not the network of its clients, such as a tunnel, a hosted network or a second line. It is also for a house whose devices are on private addresses, which no query carries. These rules apply:
- A client of that family that sent no client subnet then sends this network, on a private address or on a public one. All such clients share one cached answer.
- A client whose client subnet the server ignores, or that sends a SOURCE of 0, still sends nothing. A sender of “Trusted client subnet senders” that names its own subnet still sends that subnet.
- Each network must route on the internet. The server refuses a private range, such as
192.168.0.0/16,10.0.0.0/8orfc00::/7, and the documentation ranges, such as192.0.2.0/24and2001:db8::/32. So172.0.0.0/8passes, and172.16.0.0/12does not. - A network is no longer than the bits of “Send client subnet” for its family. With
24/56, a/25is refused, and a/20goes out as a/20. - The list needs “Send client subnet” on. To turn that off, empty the list first, or in the same save.
- A change needs no restart. It empties the cache of answers, because the answers that it holds were picked for the old network.
If the server refuses the list, the reason shows under it. The manual of the server lists each refusal.
The cost is privacy. Each authoritative server that the walk asks learns the network, for each question of each client of its family, and so can anyone who watches that traffic. Where the walk leaves through a tunnel, the query tells that server what the tunnel hides. The servers of the root, of the top-level domains, of the public suffixes and of “Zones without client subnet” never get it. Leave the list empty if the servers of each zone must not learn where your clients are.
The limit of queries over UDP
Section titled “The limit of queries over UDP”“UDP queries per minute” in “Rate limits” on the Safety tab stands after “Queries per minute”. It holds queries over plain UDP to a limit of their own. The sender of a UDP query can give a false address, and the answer then goes to that address. So you can hold UDP lower, and the server sends fewer answers to somebody who did not ask. A query over TCP proves its address in the handshake.
The two limits use one count of each client. A query over UDP passes while the count is under “UDP queries per minute”. A query over any other transport passes while the same count is under “Queries per minute”. The other transports are TCP, DNS over TLS, DNS over HTTPS, DNS over QUIC and DNS over HTTPS on HTTP/3. DNS over QUIC and HTTP/3 run on UDP too, but they keep “Queries per minute”. For example, set 500 for UDP and 1000 for the rest. A client that sent 400 queries over TCP can then send 100 more over UDP, or 600 more over TCP.
The field takes 0 to 1000000. While it says “Not set”, UDP takes the limit of “Queries per minute”, and the line under the limits names that value. To go back to that, click “Use the default” under the field, and save. 0 turns a limit off for its transports:
| “Queries per minute” | “UDP queries per minute” | What the server does |
|---|---|---|
| A number | A number | Counts every query, and holds each transport to its own |
| A number | 0 | Counts every query, and drops none over UDP |
| 0 | A number | Counts every query, and refuses none over the others |
| 0 | 0, or not set | Counts nothing |
The change needs no restart. The network of “Network of a client” can send eight times each limit.
The count and the network of the rate limits
Section titled “The count and the network of the rate limits”“Rate limits” on the Safety tab ends with two settings that change what each limit counts:
- “Minutes in one count” is the length of one count of a client, from 1 to 60 minutes, 1 by default. The count starts at the first query of the client. Each limit “per minute” stays an average, so with 5 a client can send five times “Queries per minute” in its five minutes. The new connections of “TCP connections”, five times its value in a minute, count the same way.
- “Network of a client” is two prefix lengths, IPv4 first and IPv6 second,
24/56by default. IPv4 takes 8 to 32, and IPv6 takes 32 to 128. The server counts the network of those lengths around each address beside the address, and the network can use eight times each limit.32/128counts each address alone, and16/48counts a larger network as one.
A client can spend its whole count at once. With 60 minutes and 1000 queries per minute, a client can send 60000 queries in its first minute, and then nothing for an hour. These limits act past the end of a count:
- Past the limit of its transport, the server refuses each query of that client until the count of the address ends. The limit is “UDP queries per minute” for plain UDP while it is set, and “Queries per minute” for the rest. Over UDP, the server drops the query and sends no answer. Over the other transports, it answers REFUSED and closes the connection. Past eight times the limit for the network, the server refuses the queries of each address of that network the same way, until the count of the network ends.
- Past “Resolutions per minute”, the server drops only the questions that the cache cannot answer. The client still gets the answers that the cache holds.
- Past the new connections of “TCP connections”, the server closes each new connection before it reads it, until the count ends.
The limits of what runs at the same time, the resolutions that wait and the TCP connections that are open, do not change with the count.
Neither change needs a restart, and each applies to every client at once:
- A longer count extends each count that runs, with what the client sent in it. A shorter one ends each count that is already older than the new length.
- A new network starts the count of each network again, from the counts of its addresses. So a network that keeps many queries of its addresses can refuse queries until that count ends.
If the server refuses a value of “Network of a client”, such as 40/56, the review gives the reason
under its row. The limits of a zone transfer and of the TLS sessions keep a /24 and a /56, whatever
“Network of a client” says.
The lifetime of the NS records
Section titled “The lifetime of the NS records”An NS record names a name server of a zone. “Lifetime of the NS records” in “Zone defaults” sets how long other servers keep a copy of these records before they ask again. For example, 86400 keeps them for one day. Name servers seldom change, so a long lifetime is usual. A change of a name server then takes up to that long to reach the other servers.
The setting acts on these NS records:
- The NS records of a zone that “Add zone” makes from its fields. A zone from a zone file keeps the lifetimes of its file.
- The NS records that you add without a lifetime at a name that has no NS records yet, such as a delegation to a child zone.
A new NS record beside the NS records that its name already has takes their lifetime. The NS records that a zone already has keep their lifetime. A zone that sets its own lifetime of the NS records uses that. A change acts from the next zone or record that the server makes, with no restart. A stub zone serves no lifetime of its own, so for a stub the setting changes only the lifetime in its zone file.
The field says “Not set” while server.toml does not hold the setting. NS records then take the
default time to live of the zone, or else “Default time to live”. To go back to that, click “Use
the default” under the field, and save.
Transfers and NOTIFY
Section titled “Transfers and NOTIFY”A zone transfer copies a whole zone to a secondary server. NOTIFY is a short message that tells a secondary server that a zone changed, so that it asks for the new version at once. A zone that names its own rules or its own list uses them in place of the settings of this section.
- “Who can transfer the zones”: the rules of the zones that name no rules of their own. Each rule is a row, such as “From 192.0.2.53, 2001:db8::53”, with the networks of one secondary server. With no rule, the setting says “Nobody can transfer a zone.” No rule means nobody, this server included.
- “Servers to notify”: the secondary servers that a zone tells at each change of its serial, one on each line. Without a port, the server uses port 53. Empty means nobody.
To change the rules, you must be an operator or an admin:
- To add a rule, click “Add a rule” under the rules.
- A panel opens at the right side of the page. On a phone, it rises from the bottom. Type the
networks of the secondary server in “Networks”, one on each line, such as
192.0.2.53or198.51.100.0/28. - Click “Done”. The rule goes into the list of the form.
- Click “Review and save” to send the change, as for any other setting.
To change a rule, click “Edit” on its row. To take it out, click “Remove”. The review names each
rule by its networks, such as “The rule from 192.0.2.53, 2001:db8::53”. If you remove the last
rule, the review says “Nobody can transfer a zone.” and the save takes every rule out of
server.toml. The server takes 16 rules at most, and 1 to 64 networks in each rule. If the server
refuses a rule, such as a network in a wrong form, the reason shows under the rules.
The server also decides who gets a zone. A client can transfer a zone only if a rule names its address. The networks that can ask the zone must also hold the address: “Who can ask the zones”, or the list of the zone itself where it has one. The lists of the zones of this server below it must hold the address too.
Lists of entries
Section titled “Lists of entries”“Forwarding by name” and “Names not checked” are lists. Each entry has a suffix: a name and every name under it.
- To add an entry, click “Add a forward” or “Add a suffix” under the list.
- Fill in the panel. It opens at the right side of the page, and on a phone it rises from the
bottom. For a forward, type the suffix, such as
home.lan, and one server on each line. For a name not checked, type the suffix and the time when the checks start again. - Click “Done”. The entry goes into the list of the form.
- Click “Review and save” to send the change, as for any other setting.
To change an entry, click “Edit” on its row. To take it out, click “Remove”. A forward with
“DNSSEC” set to insecure also takes a note, which says why.
“Pick a public forwarder” under “Servers” of a forward fills “Servers” from the list of public DNS services, as “Add a public forwarder” fills “Forwarders”. The list shows in the same panel, in place of the fields of the forward, and the panel keeps its title. A line at the top of the list says that the entries go into “Servers”, and that the forward goes into the list with “Done”. Pick a service and a transport. If “Servers” holds entries, pick under “What to do with the servers there now”. As in “Forwarders”, an add keeps the lines there and adds each entry that “Servers” does not hold yet. Click “Use this forwarder”: the entries go into “Servers”, and the fields of the forward show again. The forward goes into the list after “Done” alone. A forward by name works in both resolution modes, so the list does not change “Resolution mode”.
“Back” shows the fields of the forward again, as you left them. While the list shows, Escape, a click outside the panel, the close button and a swipe do the same, and the panel stays open. The back gesture of a phone closes the panel at once.
“Cancel” closes the panel of an entry. Escape, a click outside the panel, the close button at the top and a swipe close it too. If you changed the entry, the panel does not close at once. “Cancel” turns red and says “Discard changes”, and a line beside it says “Click again to close without your changes.”. Click it again, or press Escape again, to close the panel and drop what you typed. To keep the entry, click a field: the button says “Cancel” again. The panel of a rule of “Who can transfer the zones” works the same way.
The end of a name not checked is in the time of your browser, and at most 7 days ahead. If the server refuses the end, the reason shows under the list.
The privacy settings
Section titled “The privacy settings”The privacy settings are on the DNS page, because server.toml holds them. They are in the tab
“Query log and privacy”, in the section of the same name:
- “Store the names”: the query log stores the name that each query asked for.
- “Store the clients”: the query log stores who asked.
- “Keep the query log for”: how long the query log keeps each row.
- “Room for the query log”: the most room on disk that the query log and its hourly counts take, in MiB. When the log is full, the oldest rows go first. The file on disk can be a little larger, because it keeps free space to use again. A quarter of the room holds the hourly counts. So with the 1826 days of counts by default, the room must be at least 428 MiB.
- “Keep the hourly counts for”: how long the server keeps the counts of each hour, which the overview shows. The counts take about 60 KiB a day, and they must fit a quarter of “Room for the query log”. If they do not fit, the server refuses the change and says which two numbers to change. A node that keeps its query log in memory has less room (The query log store): 64 MiB of memory holds 204 days of counts. The server refuses no change of the days for the memory of a node. Where the days outgrow it, the query log and the statistics of that node turn off until a restart with days that fit, and its health says why. So raise the memory of such a node first.
- “Keep one query in”: a whole number from 1 to 1000, and 1 by default. The query log keeps one query in this many as a row, and counts the others in the hourly counts only. 1 keeps every query as a row. A busy server with a larger number writes fewer rows, and the log keeps up with more queries. The hourly counts stay exact for every query: how many came, how many were blocked, cached or failed, how they were answered, the transports, the record types, the response codes and the bands of time. These come from the kept rows: the busiest names, the busiest clients, the most blocked names, the count of devices, and the 50th, 95th and 99th percentiles, which stay inside the right band of time. Each kept row stands for this many queries, so the figure of a name or a client is an estimate. The count of devices counts only the devices of the kept rows, so it can be lower than the truth. Updates and zone transfers are always kept as rows. A change applies to the next query, with no restart, and the old rows stay. For example, with 10, a server that answers 1,000 queries keeps about 100 of them as rows, and the hourly counts still say 1,000. If you enter 0 or a number above 1000, the server refuses the change, and the review shows the reason.
If you turn off “Store the names” or “Store the clients”, new rows do not hold that data. The old rows keep it until the query log removes them.
If you make “Room for the query log” smaller, the server removes the oldest rows within a minute. The rows do not come back when you make it larger again.
The This node page
Section titled “The This node page”To open the This node page, click “This node” under “Settings” in the sidebar. The header says
“This node” and “File node.toml of this node”. A change on this page applies only to the node that the
console talks to. The other nodes keep their own node.toml.
The page has four tabs. Each tab holds these sections:
- “Listening”: “Name”, “Listeners”, “Connections and buffers”, “Who can ask”, “Behind a proxy” and “Outbound proxy”.
- “Encryption”: “Encrypted DNS” and “Certificates (ACME)”.
- “Logging and clock”: “Logging and metrics”, “Log file” and “Clock”.
- “Disk and API”: “Disk and API”, “Query log store” and “Updates”.
The sections hold these settings:
- “Name”: the name of this node as people read it, such as
dns1. If you set no name, the server uses the host name of the machine. - “Listeners”: the addresses where the server answers DNS, the count of UDP workers, the addresses that queries go out from, and the ports that queries never go out from.
- “Connections and buffers”: how long a TCP connection of DNS waits for its client, how many new connections can wait on a TCP listener, and the buffers of the UDP sockets.
- “Who can ask”: which clients can use the resolver, with and without encryption, which clients have no rate limit, and which senders the server trusts to name a client.
- “Behind a proxy”: the settings for a reverse proxy that holds the TLS session and sends plain HTTP to the server.
- “Outbound proxy”: the proxy that the server sends its own requests through, which requests go through it, the hosts that go direct, and the user and the password of the proxy.
- “Encrypted DNS”: the addresses of DNS over TLS, HTTPS, QUIC and HTTP/3, the certificate and its key, a PKCS #12 file with its password, or a certificate that the server makes, the name of this node, and the page that a browser gets at the DoH address.
- “Certificates (ACME)”: the server gets and renews its certificate by itself from a certificate authority such as Let’s Encrypt. ACME is the protocol for this. It works only after you turn on “Agree to the terms”.
- “Logging and metrics”: how much the server logs, how it writes each line, whether it logs failed answers and the local time, and where Prometheus reads the metrics.
- “Log file”: how many days of log files the server keeps on its disk, and how much room they take.
- “Clock”: how the server behaves after a start, while it does not trust the clock of the machine.
- “Disk and API”: how often the server writes its cache to disk, the addresses of the console and of the API, whether the console also answers over HTTP/3, and the proxies in front of them.
- “Query log store”: whether the query log and the statistics live on the disk or in memory, and how much memory they can take.
- “Updates”: whether the server asks GitHub for a newer release, and whether a pre-release counts.
“Ports not to send from” takes one entry on each line. Write a number for one port, such as 5353, or a range, such as 8000-8100.
You can only read “Console address” and “API address” here, because a wrong address can cut the console off. A build of the server without the console refuses an address in “Console address”.
A listener on a device
Section titled “A listener on a device”On Linux 5.7 or later, an entry of a DNS address list can end with @ and the name of a network
device, such as 192.168.1.2:53@eth0. The six lists are “DNS addresses”, “DNS over TLS
addresses”, “DNS over HTTPS addresses”, “Plain HTTP addresses”, “DNS over QUIC addresses” and “DNS
over HTTP/3 addresses”. The listener then answers only the queries that arrive on that device. The
device can also be a VRF, a separate routing table of the machine.
- Write the name of the device as
ip linkshows it. An alias such aseth0:1is a label of an address, not a device, so writeeth0. - The address must still be an address of this machine. A wildcard address stays refused.
- One address and port can be in a list once, whatever the devices. So
192.168.1.2:53@eth0and192.168.1.2:53@eth1in one list are refused. - An IPv6 address with a scope, such as
[fe80::1%2]:53, takes no device, because the scope names a device too. Write[fe80::1]:53@eth0in its place. - “HTTP-01 addresses”, “Console address”, “API address” and “Metrics address” take no device. An address and port in both “Plain HTTP addresses” and “HTTP-01 addresses” listens on the device of its entry in “Plain HTTP addresses”. It keeps that device until a restart, also after it leaves “Plain HTTP addresses”.
The server checks each entry when you save, and when the check runs before the save. A name that
cannot be a device, such as eth0:1, gets the words of the server in the row of its list. On a
system that is not Linux, every entry with a device gets them too. The server also tries each new
device for a moment. A device that does not exist, or an address outside the routing table of the
device, refuses the change. So does a served link-local IPv6 address, such as [fe80::2]:53@eth0,
that loses its device, because such an address binds only with a device or a scope. Those words
name the entry and show above the list of the review.
A new device for an address that the server already serves applies only after a restart. So does another device, or an entry that loses its device. The server keeps the listener as it was until then. A new address with a device, and the removal of a whole entry, apply at once.
One address for DoH and the http-01 check
Section titled “One address for DoH and the http-01 check”One address and port can be in “Plain HTTP addresses” and in “HTTP-01 addresses”. Write the port
in both lists, because their default ports differ: 8053 and 80. An example is 192.168.1.2:80 in
both lists, where the certificate authority asks for the http-01 check on port 80 and a reverse
proxy sends DoH. DoH is DNS over HTTPS. One listener then serves both:
- A proxy in “Trusted proxies” gets the answers to its DNS queries, and the check too.
- Anybody else gets the check alone. Any other path gets the error 403.
An address in “HTTP-01 addresses” alone answers the check to anybody. An address in “Plain HTTP
addresses” alone answers only the proxies in “Trusted proxies”. When you move an address into
both lists, or out of one of them, the server keeps its listener. “URL path” cannot be under
/.well-known/acme-challenge/, because the check uses that path. The server refuses such a path.
Its words show in the row of “URL path” in the review, and under the field after “Back”.
The outbound proxy
Section titled “The outbound proxy”The section “Outbound proxy” comes after “Behind a proxy”. It names a proxy for the requests that the server makes for itself, such as the downloads of the blocklists. A change applies with no restart.
- “Proxy address” is
http://orsocks5://, then an IP address and its port, such assocks5://127.0.0.1:9050. A host name, or a user and a password in the address, are refused. Empty, every request goes direct. A request through the proxy never falls back to a direct connection: where the proxy fails, the request fails. The walk from the root servers, the stub zones, NOTIFY, the checks of a DNS-01 challenge and the DNS client always go direct. - “Requests through the proxy” has a check box for each kind of request: “Downloads of blocklists”, “Certificate requests (ACME)”, “The update check” and “Forwarders”. By default, all but “Forwarders” are on. With a proxy set, the server refuses a save with no box on, and its words show under the boxes. Many HTTP proxies carry port 443 alone, so turn on “Forwarders” only where the proxy carries the ports of your forwarders.
- Some changes of the outbound proxy need an
admin. The server refuses such a save of anoperatorwith “This change needs an admin”, and a line under it names each list:- Another proxy, or a new one, while the lists go through it: “The change sends the list ads through an outbound proxy that no list goes through now.”.
- “Downloads of blocklists” turned on, or an entry of “Hosts that go direct” removed, for a list from a web address that is not a known list: “The change reads the list ads from a web address that is not a known list, through the outbound proxy.”.
- “Hosts that go direct” takes one entry on each line: a host suffix such as
lan, which holds every name under it, an address, or a subnet. Up to 64 entries. - “Proxy user” is the user name that the server gives the proxy, where the proxy asks for one.
- “Proxy password” is the password of that user, right under it. It is no setting either: it works as “Password of the PKCS #12 file” below does, with the same states and buttons. The server does not test it with the proxy, so a save says “Password saved. The next request through the proxy uses it.”, where a user is set. A password that the kind of the proxy cannot carry is refused, and the words of the server show under the field. “Clear password” asks first: “Clear the password of the proxy?”. With a SOCKS5 proxy and a user, every request through the proxy then fails. With an HTTP proxy, requests then send an empty password.
The proxy gets the user and the password with no encryption on the network. A viewer sees the names of the picked requests, one on each line, and “None picked.” where none is on. The review list shows them the same way.
A PKCS #12 file and its password
Section titled “A PKCS #12 file and its password”“Encrypted DNS” can take the certificate of this node from one PKCS #12 file, a .p12 or .pfx
file that holds the certificate chain and its key. Write its full path in “PKCS #12 file”, after
“Private key file”. It is one source of the certificate at a time, so it cannot go with
“Certificate file”, “Private key file”, the ACME names or “Make a certificate”. The file belongs to root or to the
server account, with no permission for other users and no group write.
The password of the file is in the row “Password of the PKCS #12 file”, right under it. The password is not a setting: it lives in a file of this node, so no revision of History holds it, a rollback does not change it, and other nodes keep their own. The console never shows it. With no password set, the server tries the empty one.
The row shows the state of the password:
- “Set”, and “Changed” with the date and the time of the last change, in the time zone of the browser.
- “Not set”.
- “Set, but the server cannot read it.”, in red. Write the password again, or make sure that its file belongs to the server account with mode 0600. The status icon of the overview names the cause, and its line opens this row.
- “Set, but the server cannot read the folder of the secrets.”, in red, where
secrets/orsecrets/node/of the state root is wrong. The state root is the directory that holds the revisions, the databases and the secrets of the server. Each must belong to the server account with mode 0700. - “The last change did not end in a known state.”, in red. Save the password again.
An admin sees “Set password” where none is set, and “Change password” and “Clear password” where one is set. An operator sees the state and the line “An admin can change this password.”. A viewer sees the line “An operator or an admin can see whether this password is set.”, because the server does not give a viewer the state.
“Set password” and “Change password” open a panel with one field, “New password”. Type the password and click “Save password”. An empty field gives “Type a password.” and sends nothing. The server first opens the file with the new password, and a wrong password changes nothing: the panel stays, with the words of the server under the field. When the password is saved, the panel closes and a message says what the server did, such as “Password saved. The certificate of the file serves now.”. “Password saved, but the certificate did not reload.” says why on its second line.
The server can answer that it could not confirm the change, or no answer can come. Then the panel stays, with your password in the field. The console reads the state again and shows it in the panel, under “The state of the password on the server:”. Look at the time of “Changed”. A save of the same password again ends in the same state, so it is safe.
“Clear password” asks first: “Clear the password of the PKCS #12 file?”. The server first opens the file with no password. If the file needs one, the server keeps the password, and an error message gives its words.
A password and its file cannot change in one save, because the server tries a new password on the file that serves now, and a new file with the password that is set now. Two ways work:
- Put the new file at the same path, then set its password.
- Take two saves. First save another source of the certificate, such as the two PEM files. Then set the new password. Then save the new file in “PKCS #12 file”.
A node with no PKCS #12 file yet starts at the second step of the second way: set the password, then save the file.
A certificate that the server makes
Section titled “A certificate that the server makes”“Make a certificate” is in “Encrypted DNS”, after “Password of the PKCS #12 file”. It is off by default, and a change needs no restart. While it is on, the server makes a certificate of its own and signs it. This is for a node with no other source of a certificate, such as a node on a private network with no name in public DNS.
- It is one source of the certificate at a time. The server refuses a save that turns it on beside “Certificate file”, “Private key file”, “PKCS #12 file” or “Certificate names”, and its words show in the review.
- The certificate names “Server name” where it is set,
localhost, and each address of the four lists of encrypted DNS, “Console address” and “API address”. - It lasts 397 days. The server makes a new one with the same key 30 days before its end, after a save that changes those names, and once it trusts the clock after a start that did not trust it.
No browser or device trusts this certificate by itself. A browser warns at the first visit and
after each new certificate. Each client of DNS over TLS or DNS over HTTPS needs the certificate, or
a pin of its key, set by hand. The console does not show the fingerprints of the certificate,
because a page that somebody else serves can show any fingerprint. Before you accept the warning
of the browser, run tadoru health on the machine of this node. Then compare the SHA-256
fingerprint that it gives with the one that the browser shows. A fingerprint that changed with no
renewal, no change of the names and no first trusted clock is the sign of an attack.
“Server name” is the host name of this node, such as dns.example.net, with at least one dot
inside it and none at the end. The server gives it to a
client that asks for the encrypted addresses of this node, and it is a name of the certificate
that the server makes. A name needs an address in one of the four lists of encrypted DNS, in
“Console address” or in “API address”. So a node that serves the console alone can hold a name.
Without an address in the four lists of encrypted DNS, the server gives no encrypted address.
The DoH help page
Section titled “The DoH help page”“DoH help page” is in “Encrypted DNS”, after “Tell clients about encrypted DNS”. DoH is DNS over HTTPS. The switch is on by default, and a change needs no restart.
While it is on, a browser that opens the DoH address of this node gets a short page, such as for
https://dns.example.net/dns-query. The page says that the address is a DNS over HTTPS endpoint. It
gives the URL to set in a browser or a device, from “Server name” and “URL path”. Where “Server
name” is set, it also names DNS over TLS and DNS over QUIC, with their ports, where this node serves
them. Without a “Server name”, the page gives the path alone, to use with the address in the bar of
the browser.
The server shows the page on “DNS over HTTPS addresses”, “DNS over HTTP/3 addresses” and “Plain HTTP addresses”, and on the Unix socket of “HTTP on a Unix socket”. A DNS client never gets it, and still gets its answer. Anybody who reaches those addresses can read the server name and the ports on the page. Turn the switch off to hide them. A browser then gets the error of a DoH request with no query.
The log
Section titled “The log”“Logging and metrics” holds two switches after “Log format”. A change of each applies at once, with no restart.
- “Log failed answers”, on by default: the server writes a line for an answer that fails. Four lines report such a fault: an alias chain that is too long, two aliases for one name, an alias with other records beside it, and a reply that changed the case of the question. An alias is a CNAME record. Off drops these four lines. The other lines stay, such as a forwarder that stays down, an answer that failed the DNSSEC check, and a refusal of rebinding protection.
- “Local time in the log”, off by default: each line carries the time in the time zone of this
machine, with its offset, such as
2026-11-06T17:02:03.123456+01:00, in place of UTC with aZ. The day of a log file follows the same zone. A new time zone of the machine shows only after a restart of the server. A machine with no time zone keeps UTC, and the server writes a warning. The Server log page of the console still shows each time in the time zone of the browser.
Where the environment variable TADORU_LOG is set on the server, it wins over “Log failed
answers”, as it does over “Log level”. A save then changes nothing in the log, and the log says so.
The section “Log file” comes after “Logging and metrics”. A change of each setting applies at once.
- “Days of log files”, from 0 to 365 days, 0 by default: how many days of log files to keep. 0
writes no file. Above 0, the server writes one file for each day in the directory
logsof its state root, such as/var/lib/tadoru/logs/tadoru-2026-11-14.log. The day is in UTC, or in the time zone of this machine where “Local time in the log” is on. Only the account of the server can read the files. A lower number deletes the older files at once. Back to 0, the old files stay. - “Room for log files”, from 16 to 65536 MiB, 256 by default: the most room that all the log files take together. Past it, the server deletes the oldest file, but never the file of the day. When the file of the day alone fills the room, it takes no more lines that day.
Each line still goes to the journal or the container, with the file on or off.
The query log store
Section titled “The query log store”The section “Query log store” comes after “Disk and API”. Both settings apply only after a restart of the server.
- “Where the query log lives”,
diskby default: where the query log and the statistics live. Withdisk, they are files in the state root. Withmemory, they live on a tmpfs, a file system in memory, at the runtime root. The runtime root is the directory that holds the socket of the server, such as/run/tadoru. They are then never in a file on a disk. A reboot empties them. A stop and a start of the packaged service keep them. The kernel can still move their pages to a swap device. - “Memory for the query log”, from 16 to 4096 MiB, 64 by default: the room that a query log in
memory can take on its tmpfs. With
disk, it does nothing.
Memory works on Linux alone. It needs a tmpfs with a size at the runtime root, such as the shared
/run of the machine, or a tmpfs of its own for room of its own. Its free room, with the store that
it holds already, must hold “Memory for the query log”. Where that is not so, DNS still answers,
the query log and the statistics are off, and the health says why. Nothing goes to the disk in
their place.
The rows and the counts take three quarters of the memory, or “Room for the query log” where that is smaller. The hourly counts of “Keep the hourly counts for” take a quarter of that, at about 60 KiB a day. So 64 MiB holds 204 days of counts, and the 1826 days by default need 571 MiB. The server refuses a move to memory, or a new room, where the days do not fit. The refusal names the room that the days need and the days that fit. Lower the days on the DNS page, or raise the room.
After a change of “Where the query log lives”, the copy at the old place stays until you delete it, and the health reports it. A backup carries no query log in memory.
The console over HTTP/3
Section titled “The console over HTTP/3”“Console over HTTP/3” is in “Disk and API”, after “Console address”. It is off by default, and a change needs no restart. HTTP/3 is HTTP over QUIC, an encrypted transport on UDP. While the switch is on, each address of “Console address” also answers HTTP/3 on its UDP port, the same address and port. It has the same certificate and the same rules as over TCP: the session, the forgery token, the failed logins and the limits of a body. “API address” stays on TCP alone. Open the UDP port in the firewall as well as the TCP port.
A browser learns of HTTP/3 from the header Alt-Svc of an answer over TCP, such as
Alt-Svc: h3=":5343"; ma=86400, and keeps it for one day. The server sends no such header in
these cases:
- The client is a proxy in “Trusted API proxies”. Set the header at the proxy, where the proxy serves HTTP/3 itself.
- “DNS addresses”, “DNS over QUIC addresses” or “DNS over HTTP/3 addresses” holds the same UDP port, on any address of this node.
- The server published a change while the request ran, such as the save that turns the switch on or off. The next request reads the new state.
- The UDP door of the address does not serve, or has no certificate.
- The UDP doors refuse every attempt. The server manual says why in The UDP doors refuse every attempt.
The server cannot see three setups that send a browser to the wrong place:
- The name of the console resolves to another address that does not serve the console on that port, such as an IPv6 address beside the IPv4 address of “Console address”. Make each address of the name serve the console on that port, or nothing on its UDP port.
- A router forwards another port to the console, such as TCP port 443 to 5343. The header names 5343, which the browser then tries on the router. Forward the same port number for TCP and UDP.
- A reverse proxy that is not in “Trusted API proxies” passes the header on to the browser, unless it removes it.
Off stops the UDP doors. Each connection then gets up to 10 seconds to end its requests. The port comes free about 11 and a quarter seconds after the stop. A save that turns the switch on again sooner can fail to bind the port. Then save again a moment later.
The server sends no header that clears the old one. So for up to a day, a browser can still try the UDP port first. Where nothing answers there, it falls back to TCP. Give that UDP port to no other service for a day, because the browser can still send the requests of the console there. The server manual says what to do in The console fails over HTTP/3 after a change of ports.
The update check
Section titled “The update check”The section “Updates” comes after “Query log store”, on the tab “Disk and API”. Both switches are off by default, and a change applies at once, with no restart.
- “Check for updates”: the server asks the list of releases of Tadoru on GitHub, about once a day, whether a release newer than the one that runs is out. The server never downloads or installs a release. The first check comes 1 to 10 minutes after you turn it on. After a failed check, the next one waits 1 hour, then 2, 4, 8, 16 and 24 hours, each with up to a quarter more at random. Where GitHub names a longer wait, the check waits for it, up to 30 hours.
- “Count pre-releases”: a pre-release, such as
0.2.0-rc.1, also counts as a newer release. A node that runs a pre-release itself, such as a build ofmain, counts pre-releases anyway. The switch does nothing while “Check for updates” is off.
GitHub learns the address of this node, or of its proxy, and the version of the server. Nothing
else goes. Where “Proxy address” is set and “Requests through the proxy” holds “The update check”,
the check goes through the proxy and never goes direct. An entry of “Hosts that go direct” that
holds api.github.com, such as github.com, sends the check direct.
The panel of the status icon on the Overview shows what the check finds
(What the update check found). After a login, a toast
names a newer release once. A line under the version in the sidebar names it on every page
(A newer release). The log of the server
names each failure, in the warning the update check failed with its reason. For now, the list
of releases of Tadoru does not answer a request with no login, so each check fails with the reason
unavailable.
The server manual lists each reason in
The update check fails.
The waits of a TCP connection
Section titled “The waits of a TCP connection”The section “Connections and buffers” holds three waits, in seconds, 10 by default. Each holds for plain DNS over TCP. The read and the write wait hold for DNS over TLS too.
- “TCP idle time”, from 1 to 300 seconds: how long a plain TCP connection can wait for its next query. The wait counts before the first query too, so a client that connects and sends nothing is closed after it.
- “TCP read time”, from 1 to 60 seconds: how long the rest of a query can take once its length arrived. A query over TCP starts with its length, and its bytes follow. The wait closes a client that sends one byte a second to hold a place on the server. A long value lets such a client hold its place for longer.
- “TCP write time”, from 1 to 60 seconds: how long one answer can take to reach the client. A client that asks and then stops reading is closed after it. Each message of a zone transfer must leave within it too.
A new value holds for each connection that starts after the save, with no restart. A connection that runs keeps the waits it started with. DNS over TLS keeps its own idle wait of 30 seconds, because a phone keeps one connection and asks again a few seconds later. DNS over QUIC and HTTP/3 keep 10 seconds to read and to write, and take “QUIC idle time” as their idle wait. The PROXY header of a load balancer and the TLS handshake keep 10 seconds each, and DNS over HTTPS keeps waits of its own. So a sender in “Load balancers with PROXY protocol” that connects and sends nothing is closed after 10 seconds, whatever “TCP idle time” says.
The backlog and the buffers of UDP
Section titled “The backlog and the buffers of UDP”The section “Connections and buffers” also holds three options of the sockets of each DNS listener. A save applies a new value to the sockets that run, with no restart, and a new address takes it when it starts.
- “TCP backlog”, from 16 to 4096, 128 by default: how many new connections can wait for the server to accept them, on each TCP listener of DNS. It holds for “DNS addresses”, “DNS over TLS addresses”, “DNS over HTTPS addresses” and “Plain HTTP addresses”. Past it, the kernel drops a new handshake, and the client sends it again. “QUIC waiting connections” stays the backlog of QUIC.
- “UDP receive buffer”, from 64 to 65536 KiB: the receive buffer of each UDP socket of a DNS
listener. A KiB is 1024 bytes. The kernel drops a burst of queries that is larger than the
buffer, and the metric
dns_udp_kernel_drops_totalcounts it. - “UDP send buffer”, from 64 to 65536 KiB: the send buffer of the same sockets.
The two buffers hold for each UDP worker of “DNS addresses”, and for the sockets of “DNS over QUIC
addresses” and “DNS over HTTP/3 addresses”. While a buffer is not set, each socket keeps the size
that the kernel gives by default. The metric dns_udp_socket_buffer_bytes shows the size of each
buffer.
The kernel caps each of the three settings:
| Cap of the kernel | Caps | Default of Linux |
|---|---|---|
net.core.somaxconn |
“TCP backlog” | 4096, and 128 before Linux 5.4 |
net.core.rmem_max |
“UDP receive buffer” | 208 KiB |
net.core.wmem_max |
“UDP send buffer” | 208 KiB |
The kernel cuts the backlog at its cap with no warning, so the server writes a warning where the
setting is higher. Where the kernel gives a buffer less than the setting, the server writes a
warning that names the cap, and the socket keeps the size that it got. The server cannot raise a
cap, because its service has no right to pass the caps. Raise the cap on the host, as
The buffers of the kernel in the server manual
says. A cap is in bytes, so a receive buffer of 4096 KiB, which is 4 MiB, needs net.core.rmem_max
of 4194304 or more. Then restart the server, so that each socket asks again. A save asks again only
where it changes the setting. A container shares the caps with its host, so set them on the host.
“Use the default” on a buffer gives each socket back the size that the kernel gives by default. On Linux, the kernel sets a size that a program asks for in another way than its default. So where the default is an odd number of bytes, or more than twice the cap, the socket gets a size near the default, and the server writes a warning with both sizes. A restart gives the default exactly.
Allow and deny rows
Section titled “Allow and deny rows”“Who can use the resolver”, “Who can use the encrypted resolver”, “Trusted proxies” and “Trusted
API proxies” hold one row for each entry. A row has a choice of “Allow” or “Deny”, and an address
or a subnet, such as 192.168.1.0/24. A deny row takes a range out of a wider allow row. For each
client, the row with the longest prefix that holds the client decides. So the order of the rows
does not count, and you cannot move a row.
For example, these rows answer 10.1.2.1 and refuse 10.1.5.1:
- Allow
10.0.0.0/8 - Deny
10.1.0.0/16 - Allow
10.1.2.0/24
To change the rows:
- To add a row, click “Add an entry”. A new “Allow” row comes at the end, and the cursor goes to its address.
- To make a row a deny row, pick “Deny” in its choice. Do not type a
!before the address. The console writes it. If you type one, the field says “Pick Deny in place of a ! before the address.”, and the form cannot save. - To remove a row, click “Remove”. On a phone, the button shows a cross. The cursor goes to the next row, or to “Add an entry” after the last row.
- Save the changes as usual. A row with no address does not go into the save. The review list shows each entry with “Allow” or “Deny” before it. It shows an empty list as “Nobody can use the resolver.”, “Nobody can use the encrypted resolver.”, “No proxy at an address names a client in a header.” or “The console and the API trust no proxy.”.
A new row with no address, or a space after an address, changes nothing. Alone, it counts no change, and the field and its tab get no mark. The row stays on the screen until a save sends that list, or until “Read again” or another change gives a newer value of that list.
With no row, the field says “No entries.”. An empty list of a resolver lets nobody resolve, and
the server answers only its own zones. “Use the default” puts back the loopback and the private
networks. An empty “Trusted proxies” or “Trusted API proxies” is the default. Then no proxy at an
address names a client in a header to the server, and the console address and the API address
believe no client header. A proxy on the Unix socket doh.sock, which “HTTP on a Unix socket” turns on, is
always trusted. The file mode of the socket decides who that is.
The server refuses rows that cannot mean what they say, and its words show under the field. The words name the entry, and every row has a red border, because the server names the list but not the row. A later server can name the row, and then only that row has the red border. The server refuses these lists:
- The same range in an allow row and in a deny row.
- Deny rows alone. To let nobody resolve, remove every row.
- A deny row that no allow row holds, so it denies nothing.
- A deny row inside another deny row, which denies it already.
- A deny row whose whole range longer allow rows give back.
“Trusted proxies” takes 64 entries at most, and “Trusted API proxies” 16, deny rows too. A machine in “Trusted proxies” can name any client in its header. So it can get past “Who can use the encrypted resolver”, “Clients that are never blocked”, the client rules and the limits of each client. A machine in “Trusted API proxies” can choose the address that its failed logins count under. So in both lists, name the reverse proxies alone, by address or by their own small subnet. To trust no proxy at an address, remove every row. To trust no proxy at all in “Trusted proxies”, also turn off “HTTP on a Unix socket”.
In both lists, the server refuses allow rows that together hold every public IPv4 address or
every public IPv6 address, all of 2000::/4. A deny row inside them does not change that. The
public IPv4 addresses are all of 0.0.0.0/0 but 224.0.0.0/3, 0.0.0.0/8, 10.0.0.0/8,
100.64.0.0/10, 127.0.0.0/8, 169.254.0.0/16, 172.16.0.0/12 and 192.168.0.0/16. The
public IPv6 addresses are all of 2000::/4, where the registries give out addresses. So the
server refuses 0.0.0.0/0, ::/0, 2000::/4 and 2000::/3. It also refuses rows that hold
every public IPv4 address but leave out a range that is not public, such as 0.0.0.0/8.
The server takes the address of a proxy. It also takes a wider list that does not hold every
public address, such as 10.0.0.0/8, 0.0.0.0/1, 3000::/4, or the NAT64 prefix
64:ff9b::/96, which stands for every IPv4 address. Each such row trusts every machine in it, so
write no row wider than your proxies.
For example, these rows trust each machine of 192.168.1.0/28 as a proxy, but not
192.168.1.6, which counts as a client itself:
- Allow
192.168.1.0/28 - Deny
192.168.1.6
In “Trusted proxies”, “Plain HTTP addresses” refuse 192.168.1.6. “DNS over HTTPS addresses”
and “DNS over HTTP/3 addresses” read no header from it. In “Trusted API proxies”, its failed
logins count under its own address.
A change of the rows counts from the next request. In “Trusted proxies”, a proxy that a deny row or the removal of its row takes out loses its open connections at their next request. This holds on “Plain HTTP addresses” and “DNS over HTTPS addresses”. Then “Plain HTTP addresses” refuse its new connections, and its new connections to “DNS over HTTPS addresses” meet the limit of one client. In “Trusted API proxies”, such a proxy loses its open connections at their next request. Then every user behind that proxy counts under the address of the proxy. So one stranger behind it can use up the failed logins of all of them. A console that you reach through that proxy also loses its connection.
A server build before this one took some lists that hold every public IPv4 address or every public
IPv6 address, such as 2000::/3 in either list, or 0.0.0.0/0 in “Trusted proxies”. After the
upgrade, a node.toml with such a list stops the start, so you fix the file by hand. A rollback to
a revision that holds such a list is refused too.
A list of proxies the server will not take
in the server manual gives the message.
If you do not know the addresses of your proxies yet, write [] in the list that the message
names, such as http_trust = [] in node.toml. With an empty “Trusted proxies”, “Plain HTTP
addresses” refuse every machine. “DNS over HTTPS addresses” and “DNS over HTTP/3 addresses” answer
each machine as itself. A proxy that stays in front of them is then the client of every query that
it carries. It meets the limits of one client, and “Who can use the encrypted resolver” must allow
it. With an empty “Trusted API proxies”, a proxy in front of the console address or the API
address is the client of every login that it carries. So one stranger behind it can use up the
failed logins of every user. Name the proxies soon.
A server build older than this one takes no deny row in “Trusted proxies”. Before you go back to such a build, write the same set with allow rows alone. Do not just remove the deny rows. The machine that a deny row left out then becomes a trusted proxy.
A viewer sees each entry on its own line, with “Allow” or “Deny” before it. An empty list says “Nobody can use the resolver.”, “Nobody can use the encrypted resolver.”, “No proxy at an address names a client in a header.” or “The console and the API trust no proxy.”.
The settings that apply after a restart
Section titled “The settings that apply after a restart”Eleven settings on this page can apply only after a restart of the server:
- “UDP workers”: a new count of workers.
- “Metrics address”: a new address, or an empty address that turns the metrics off. If the metrics were off, a new address turns them on at once.
- “Clock wait after a start”: a longer wait. A shorter wait applies at once.
- The six DNS address lists: a new device, another device or no device for an address that the server already serves (A listener on a device). A new address and the removal of an entry apply at once.
- “Where the query log lives”: a move to the disk or to memory.
- “Memory for the query log”: a new room, where the server started in memory and stays in memory. On a node that started on the disk, the room waits for nothing, because it does nothing there.
The review list marks these eleven settings with “Applies after a restart”. When the check of the server answers, the marks follow its list, so a change that applies at once loses its mark. The server saves the new value at once, but it uses the value only after the next restart.
A save on this page makes a new revision of all the settings files, and the History page shows it. If the DNS page was open before the save, its next save meets the new revision. It then says “Another change came first” and keeps your changes on top of the new revision.
The Blocking page
Section titled “The Blocking page”To open the Blocking page, click “Blocking” under “Settings” in the sidebar. The header says “Blocking” and “File blocking.toml, shared by every node”. The page holds the settings of the file that are not lists. The blocklists page changes the lists that the server reads (The Blocklists). The rules page changes your own names and patterns (The Rules).
The page has two tabs. Each tab holds these sections:
- “Answers”: “Blocking”, “The answer”, “What else blocks” and “Never blocked”.
- “Lists”: “Reading lists” and “Checks of a copy”.
The sections hold these settings:
- “Blocking”: one switch, “Blocking”, which turns blocking on or off for every device.
- “The answer”: what a blocked name gets, and how long a device keeps that answer. The choices are
zero,nodata,nxdomainandaddress. The choiceaddressshows two more settings, “IPv4 address of the answer” and “IPv6 address of the answer”. - “What else blocks”: whether the server tests the names inside an answer, tells Firefox that the network filters, lets Apple Private Relay start, and says why a name is blocked.
- “Never blocked”: the addresses and subnets of clients that no rule blocks, one on each line.
- “Reading lists”: the time between two reads of a list, and the shortest time between two reads.
- “Checks of a copy”: six checks of each new copy of a list. A copy that fails one check is not used, and the list keeps the copy that it had. Each list can also set its own checks on the Blocklists page.
The two addresses show only while the answer is address. If you pick another answer, or “Use
the default”, the form sets each address that holds a value back to its default. The review lists
each one as “The default”. If you pick address again, the addresses of the file come back. The
server refuses an address with another answer.
“Shortest time between reads” can be at most the time of “Read the lists every”, in minutes. The line under its short text gives that limit for the value that you typed. The server checks it too.
If the server has no blocking.toml yet, the page shows each default. The first save makes the
file.
Turn blocking off for every device
Section titled “Turn blocking off for every device”Turn off “Blocking” and save to stop blocking for every device. The server then tests no rule.
The answer to the name that tells Firefox that the network filters, and the block of Apple Private
Relay, stop too. The save is a change of blocking.toml, so History lists it and can roll it
back. A restart keeps blocking off, and every node takes the change. The server still reads the
lists while blocking is off, so blocking starts again at once with current lists when you turn it
on.
The switch of the top bar is a second way to stop blocking. It stops blocking for a while, and a restart of the server turns it on again. Blocking runs only while “Blocking” is on and the switch of the top bar is on.
Turning “Blocking” off writes the setting as off in blocking.toml. Turning it on takes the
setting out of the file, because on is the default. “Blocking” has no “Use the default”, because
the switch does the same. A server older than this setting refuses a blocking.toml that names
it. While blocking is on, the file does not name it, so such a server reads it. If the file names
the setting as on, from a script or a hand edit, edit blocking.toml on the server to take the
line out. If blocking is to stay off on an older server, turn it off there with the switch of the
top bar.