Name server · Ad blocker · Open source
Your own name server, on a small machine
Aesir NS answers the DNS questions of your network: the names of your own zones from its database, every other name from the upstream servers, and the names of advertising, trackers and malware not at all. You manage it in the browser or through its API.
- Node.js and MongoDB
- Linux and Windows
- Raspberry Pi and mini PCs
- MIT licence
At a glance
- 8record types in your own zones: A, AAAA, CNAME, MX, NS, PTR, SRV, TXT
- 1 serviceDNS server, management API and interface in one process
- 3 themeseach in a light and a dark mode, on a desktop and a phone
- 4 modulesOdin, Njord, Freya and Bragi, each open source
What it does
One service runs the DNS server, the management API and the interface. It is built to need little CPU and memory.
Your own zones
A, AAAA, CNAME, MX, NS, PTR, SRV and TXT records, wildcards and aliases, answered with authority from memory, so a query never waits for the database.
Names without a zone
Standalone records for the machines of a home or office network, such as a NAS or a printer, without a zone around them.
Blocking
Block lists from an address (hosts files, plain names, ad-blocker rules) and rules set by hand. A page tells whether a domain is blocked, and why.
Monitoring
The query log with filters, the clients with names you give them, the most asked and most blocked names, and graphs of the queries, answer time, memory and cache.
Forwarding with a cache
Every other name is looked up at the upstream servers and kept for its TTL. Queries for the same name share one lookup; missing names are remembered too.
DNSSEC validation
Optional: the addresses the upstream answers are checked up to the root keys, or the flag of an upstream you trust is used. Forged answers are refused.
Safe by default
Not an open resolver: other names are answered only to your own networks. Answers are rate limited against reflection attacks, and DNS over TCP has its own limits.
Several servers
Secondaries copy the zones, records, blocking and, if you want, the users from a primary, with an API token, every few minutes.
Users and sign-in
Roles, two-factor sign-in, API tokens with scopes, lost-password e-mails and an audit trail of who changed what.
HTTPS
A certificate of Let's Encrypt that renews itself (also a wildcard through a DNS record of its own zone), or one of your own.
An API for everything
What the interface does, the REST API does too, described and ready to try in Swagger UI. Export and import move the whole configuration.
Plugins
Add API routes, pages and jobs. The
heimdallplugin reports the counters to a Heimdall Monitoring System, never the names clients asked for.
The interface
Odin NS Manager runs in any modern browser, on a desktop and on a phone. It is built with Athena UI and comes with three themes, each in a light and a dark mode. The screenshots show test data.
On a phone too
On a small screen the menu becomes a tab bar at the bottom, the tiles and tables fit the width, and every control is large enough for a finger.
Four modules
Each module has its own repository and version. A release of Odin pins the versions of the others, and the installer installs exactly those.
-
Odin NS Manager
The service you install. It brings the others together: the DNS server, the management API, the interface and the installers.
-
Njord NS Server
The DNS server engine in pure JavaScript: UDP and TCP, EDNS0, zone transfers and a recursor. It hands you each query as an object to answer.
-
Freya NS API
The management API: zones and records, blocking, monitoring, users and sign-in, export and import, and the HTTPS certificate.
-
Bragi NS Client
A cached replacement of Node.js
dns.lookupfor outgoing connections, with round-robin and optional DNSSEC validation. No dependencies.
Install
The installer sets up a machine from nothing: it installs Node.js and MongoDB where they are missing, asks a few questions, and runs Odin as a service that starts with the system. The same script updates and uninstalls it.
Linux
Debian, Ubuntu, Raspberry Pi OS, CentOS, RHEL, Rocky, Alma (8 or newer) and Alpine.
curl -fsSLO https://raw.githubusercontent.com/csabatibortoth/odin-ns-manager/master/install/install.sh
sudo sh install.sh install
Windows
Windows 10, 11, or Server 2016 and newer, in PowerShell.
Invoke-WebRequest https://raw.githubusercontent.com/csabatibortoth/odin-ns-manager/master/install/install.ps1 -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File install.ps1 install
What it needs
| Node.js | 22 or newer |
|---|---|
| MongoDB | On the same machine or elsewhere. Without it the server still runs as a forwarder. |
| Ports | 53 (UDP and TCP) for DNS; the interface on 45451 by default, or HTTPS |