A home network, start to end
This page is one path for a house with one router and one machine that runs Tadoru. It takes six steps, in order. Each
step gives the setting, a short example and a link to the page that says all of it. The examples use 192.168.1.2 for
the machine. Use your own address.
Before you start, install and run the server, so that it has a config root. Give the machine a fixed address, or a reservation in the router, because the router names this address to every device (Make your network use it).
Edit each file in the config root, save it, and the server uses it with no restart. Each save is a revision. Changing a file by hand says what happens to a file that does not validate: the last good revision keeps serving.
1. Listen on the network, at port 53
Section titled “1. Listen on the network, at port 53”A new server listens on 127.0.0.1:5300, which no other machine can reach. In node.toml, name the loopback and the
address of the machine, both at port 53. Name each address. A wildcard such as 0.0.0.0 is refused.
listen = ["127.0.0.1:53", "192.168.1.2:53"]Port 53 needs the right to bind it. The systemd unit and the container grant it, and The first start says how a checkout gets it. Configuration has the setting.
2. Set the forwarders, or resolve from the root
Section titled “2. Set the forwarders, or resolve from the root”With no forwarders, every name that the server does not hold gets NXDOMAIN, and your devices lose the internet. In
server.toml, name one or two resolvers:
forwarders = ["1.1.1.1", "9.9.9.9"]To have the server ask the name servers of the internet itself, set this in place of the list:
resolution = "recurse"Use one of the two. A file that sets resolution = "recurse" beside a forwarders list that is not empty is refused.
Configuration says how each works.
3. Add your IPv6 prefix
Section titled “3. Add your IPv6 prefix”The default allow_recursion holds loopback and the private ranges, so a device on 192.168.0.0/16 is answered. If your
provider gives you IPv6, your devices have global addresses, and no default can guess your prefix. Add it in node.toml.
A list that you write replaces the default, so keep the ranges that you still want:
allow_recursion = [ "127.0.0.0/8", "::1", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "169.254.0.0/16", "fe80::/10", "fc00::/7", "2001:db8:1234::/48", # the prefix your provider routes to you]Add the range of your own network and nothing else. Never write 0.0.0.0/0 or ::/0: they open the server to the
whole internet. Without IPv6, leave the default as it is.
Who gets recursion has the rules, and
Who the server resolves for says why.
4. Add one blocklist
Section titled “4. Add one blocklist”Nothing is blocked until you name a list. In blocking.toml, add one source with an id that you choose:
[[source]]id = "hagezi-pro"url = "https://cdn.jsdelivr.net/gh/hagezi/dns-blocklists@latest/wildcard/pro-onlydomains.txt"The server fetches the list and blocks what it holds. Blocking says what a source is, how to allow a name and how to read the counts. Configuration has every key of the file.
5. Turn on the console
Section titled “5. Turn on the console”The console is a web page that shows the server and changes its settings. It needs a build with the console. In
node.toml, name an address and let the server make a certificate for itself. An address with no port takes 5343:
console_listen = ["192.168.1.2:5343"]tls_self_signed = trueOpen https://192.168.1.2:5343/ in a browser. It warns about the certificate, because the server signed it. Compare the
SHA-256 fingerprint with the one that tadoru health gives, and then accept it. Turn on the web
console has the steps.
A new server has no account. The first start writes a one-time setup token in the state root,
at ./data/state/setup-token in the examples of Install and run. Read it on the machine,
paste it on the “Set up Tadoru” page, and make the first administrator. The token works once and lasts a day.
Setting Up the First Administrator has each field, and Accounts has the roles.
6. Point the router at the server
Section titled “6. Point the router at the server”In the settings of the router, find the DNS server that it gives to the devices, and put the address of this machine there. Leave the second entry empty, because a resolver of another kind skips your blocking. Set the IPv6 DNS server too, if your network hands one out. A device takes the new setting when it renews its lease, or when you turn its network off and on.
Then check from another machine:
dig @192.168.1.2 example.com Adig example.com AThe first command asks the server by its address. In the second, the line SERVER: names this machine when the router is
set. Make your network use it has the router step and the checks. If a command
times out, or the answer is REFUSED, NXDOMAIN or SERVFAIL, start at
Nothing resolves.