Pre-release · v0.1.0 coming soon

Memory-safe filtering DNS with a built-in web UI. One binary, one config file.

Point your devices at Sito. It blocks ads, trackers and malware domains, answers your local names, and forwards everything else to an encrypted upstream.

Does Pi-hole's job today. Once the planned recursive resolver lands, Unbound's too.

Sample Sito dashboard: 24 hours of answered and blocked queries, five stat tiles and the top blocked domains. The numbers are made up.
Queries
45,500
Blocked
9,301
Blocked %
20.4%
Cached
26,390
Avg response
12 ms
Queries, last 24 h AnsweredBlocked
Top blocked domains
  1. app-measurement.com1,284
  2. doubleclick.net962
  3. scorecardresearch.com611
  4. logs.roku.com447
≈17 MiB
memory at idle with the default blocklists loaded
≈229,000
domains in those default blocklists
≈12 MB
container image, built FROM scratch, runs as non-root
MIT / Apache-2.0
your choice of license, source on GitHub

Why Sito

Three things it does differently

01

Memory-safe core

Written in Rust on hickory-proto, with unsafe forbidden. No dnsmasq, no C anywhere in the DNS path.

#![forbid(unsafe_code)]
rusthickory-protono dnsmasq
02

Stateless, config as code

sito.toml is the only persistent state. No SQLite, no gravity database. The web UI edits that file in place and keeps your comments. For high availability, run several identical instances behind DHCP.

# work laptop: the VPN breaks when filtered
unfiltered_clients = ["192.168.1.42"]

Saved from the web UI. The comment stays where you wrote it.

03

Built-in UI and metrics

Dashboard, query log and toggles out of the box, and they work with JavaScript off. Prometheus metrics are a first-class endpoint, not an exporter you bolt on.

GET /metrics Prometheus
GET /api/v1 REST, OpenAPI
GET /healthz /readyz too

One file

Your whole setup fits on one screen

Back it up, diff it, keep it in git. Edit it and Sito notices within seconds; most settings need no restart.

/etc/sito/sito.toml
11[upstream]
2servers = ["tls://dns.quad9.net", "tls://one.one.one.one"]
3
24[blocking]
5lists = ["https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts"]
6allow = ["example.com"]
37unfiltered_clients = ["192.168.1.42"]
8
49[local.records]
10"nas.home.lan" = ["192.168.1.10"]
11
512[[conditional]]
13domain = "1.168.192.in-addr.arpa"
14server = "192.168.1.1"
  1. Encrypted upstreams

    DNS-over-TLS here; DoH and plain DNS work too. If the first server is slow, the next is asked as well and the first answer wins.

  2. Blocklists and an allow list

    Hosts files, plain domain lists and AdBlock-style ||domain^ lines. Allowed domains are never blocked.

  3. A device that skips filtering

    Permanent here. From the UI you can also switch blocking off for one device for 5 minutes or an hour.

  4. Your own names

    Records and aliases for the machines on your LAN, answered before anything else.

  5. Device names from your router

    Reverse lookups for the LAN go to the router, so the query log shows pixel-7 instead of 192.168.1.57.

How a query flows

Five steps, first match answers

Each query walks this list in order and stops at the first step that has an answer.

  1. 1

    Local records

    nas.home.lan is answered straight from sito.toml.

  2. 2

    Conditional forwarding

    Your LAN's reverse zone goes to the router.

  3. 3

    Blocklist

    A match gets 0.0.0.0, NXDOMAIN or REFUSED. Skipped for unfiltered clients.

  4. 4

    Cache

    Recent answers come from memory.

  5. 5

    Upstream

    Over DoT or DoH, by priority with hedging, or a race.

Every query is logged and counted, whichever step answers it: query log, per-client history and /metrics.

Features

What works today

  • Encrypted upstreams

    Plain DNS, DoT or DoH. Priority with hedging, or race.

  • Any list format

    Hosts files, domain lists, AdBlock ||domain^. Allow and deny lists.

  • Your blocked answer

    Reply with 0.0.0.0, NXDOMAIN or REFUSED.

  • Local names

    Records and aliases like nas.home.lan, conditional forwarding.

  • Device names

    Learned from your router by reverse DNS. DHCP stays with the router.

  • Per-device off switch

    Unblock one device for 5 minutes, an hour or for good.

  • Pause all blocking

    One click, for as long as you choose.

  • Hot reload

    Save the file, changes apply within seconds.

  • Per-client history

    24 h of queries, blocks and average response time.

  • REST API

    /api/v1 with OpenAPI. Optional admin password and API token.

Ships with a sandboxed systemd unit, a Docker Compose file and /healthz and /readyz for your orchestrator.

Compared

Sito, Pi-hole, AdGuard Home and Blocky

All four are good software. This is where they differ.

FeatureSitoPi-holeAdGuard HomeBlocky
Memory-safe languageYes,RustNo,CYes,GoYes,Go
No database, one config fileYesNoNoYes
Web UIYesYesYesNo
Prometheus metrics built inYesNoNoYes
DoT / DoH to upstreamsYesNoYesYes
DoT / DoH for clientsplannedNoYesYes
Local records and conditional forwardingYesYesYesYes
Per-client groupsplannedYesYesYes
Regex rulesplannedYesYesYes
Built-in recursive resolverplannedNoNoNo
DHCP serverNo,by designYesYesNo

From each project's own documentation. Spot something out of date? Open an issue.

Questions

Before you switch

Is Sito an alternative to Pi-hole?
Yes. Sito does the same job: it answers DNS for your home network and blocks ad, tracker and malware domains from blocklists. It differs in being one static binary written in Rust, configured from one file instead of a database, with Prometheus metrics built in. Client groups and regex rules are planned but not available yet, and Sito has no DHCP server.
How is Sito different from AdGuard Home and Blocky?
AdGuard Home has a web UI but is not configured from a single file. Blocky is one config file but has no web UI. Sito is both: Blocky's stateless design, plus a built-in web UI that edits sito.toml in place and keeps your comments. DNS-over-TLS and DNS-over-HTTPS for clients are planned; today Sito uses them for upstreams.
Does Sito run on a Raspberry Pi?
Yes. Sito runs on Linux and is small: about 17 MiB of memory at idle with the default blocklists loaded, and a container image of about 12 MB. There are no release binaries yet, so you build it with Rust or run it with Docker Compose.
Does Sito include a DHCP server?
No, by design. Your router keeps handing out addresses. Sito learns device names from the router by reverse DNS, so the query log still shows names instead of IP addresses.
Which blocklists does Sito support?
Hosts files, plain domain lists and AdBlock-style ||domain^ lines, from URLs or local files, and one list can mix the formats. The default lists cover about 229,000 domains. Your own allow and deny lists go on top, and a blocked query can be answered with 0.0.0.0, NXDOMAIN or REFUSED.
Does Sito encrypt DNS queries?
Queries to upstream resolvers can go over DNS-over-TLS or DNS-over-HTTPS, or plain DNS if you prefer. Encrypted DNS between your devices and Sito is planned, not available yet.
Is Sito ready to use?
Sito is pre-release. Everything described on this site works today, but there are no release binaries: you build it yourself or run it with Docker Compose. Version 0.1.0 follows a week of daily use on the author's home network.
Is Sito free and open source?
Yes. Sito is licensed under MIT or Apache-2.0, at your choice, and the source is on GitHub.

Quickstart

Try it in five minutes

There are no release binaries yet. Build with Rust, or let Docker Compose build the image for you.

Full guide: the binary path, router setup and the Ubuntu port 53 fix

systemd

$ git clone https://github.com/SitoDNS/sito.git && cd sito
$ cargo build --release
$ sudo contrib/install.sh target/release/sito

Docker Compose

$ git clone https://github.com/SitoDNS/sito.git && cd sito
$ docker compose up -d --build
$ dig @127.0.0.1 example.com