Aesir NS ยท The manager

Odin NS Manager: the name server you install

Odin runs the DNS server, the management API, its interface in the browser and the DNS client side in one process. The zones and records you manage in the browser or through the API are stored in MongoDB and answered by the DNS server; every other name is forwarded upstream.

  • Version 2.17.1
  • MIT licence
  • Linux and Windows
  • Node.js 22
The dashboard of Odin: the number of queries, the blocked ones and the answer time, charts of the queries over time and the most asked names, and the state of the DNS server.

What it does

Everything a small network needs from its name server, managed in the browser.

  • Own zones

    A name of one of its zones is answered by the server itself, with its A, AAAA, CNAME, MX, NS, PTR, SRV and TXT records. When zones overlap, the longest matching one answers.

  • Forwarding and cache

    Every other name is forwarded to the upstream DNS servers, and the answers are kept in memory. The addresses can be checked with DNSSEC.

  • Blocking

    Names that are not looked up: from block lists such as hosts files, downloaded on a schedule, and from rules you set by hand.

  • Monitoring

    The query log, the clients and the most asked names, and graphs of the queries, the answer time, the memory and the cache.

  • Several servers

    Secondaries copy the zones, records and blocking from a primary, with an API token made on the primary.

  • Users and roles

    Admins, editors and readers. Which zones an editor may change and a reader may read is set per user and per zone, and the server checks it on every request.

  • Two-factor sign-in

    The six-digit code of an authenticator app after the password, with ten recovery codes. Admins can be required to use it.

  • API tokens

    For scripts and secondaries: what a token may do, one zone only if you like, the networks it may come from and when it ends. Only a hash is kept.

  • Audit trail

    Who changed what, when and from where. Every change is written there before it is made; a change that can not be recorded is refused.

  • HTTPS

    A certificate of Let’s Encrypt that renews itself, or one of your own.

  • E-mail and plugins

    Notifications and lost-password links by e-mail. Plugins add routes, pages and jobs; one reports to the Heimdall Monitoring System.

  • Health check

    GET /health tells a load balancer or a monitor whether the DNS sockets, the database and the certificate are fine.

Install and check

The installer sets up a machine from nothing, on Linux or Windows. Afterwards, the health of a server is one request away.

Is the server healthy?

A load balancer, a monitor or a script asks /health: no sign-in, nothing but the state.

curl -s http://localhost:45451/health
{"status":"ok","checks":{"dns":{"udp":true,"tcp":true},"database":true,"certificate":{"daysLeft":61}}}

fail (HTTP 503) when a DNS socket is not listening, the database does not answer or the certificate has expired; warn when the certificate ends within 14 days.

Which versions belong together

A release of Odin pins the other packages in its lock file; an update of Odin brings them along.

Odinfreya-ns-apinjord-ns-serverbragi-ns-clientathena-ui-js
2.17.12.12.02.3.02.1.02.14.0
2.17.02.12.02.2.02.1.02.14.0
2.16.02.11.02.1.02.1.02.14.0

What it needs

Node.js22 or newer (the installer adds it where it is missing)
MongoDBOn the same machine or elsewhere. Without it the DNS server runs as a forwarder only.
SystemLinux (Debian, Ubuntu, Raspberry Pi OS, RHEL family, Alpine) or Windows 10, 11 and Server 2016 or newer

The other 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.

  • 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.lookup for outgoing connections, with round-robin and optional DNSSEC validation.