Architecture & Security Whitepaper
How SailDNS is built, and why each design decision was made the way it was.
In short: every time a device tries to reach a website, it first asks a DNS server "where is this?" SailDNS answers that question for your whole fleet — every office, every laptop — and refuses to answer for sites already known to be malicious, stopping most attacks before a connection is ever made. The rest of this document is the technical detail behind that: how the resolver itself works, how customer data stays isolated, how every device proves its identity, and what keeps it all running through an outage.
Overview
SailDNS is a multi-tenant, cloud-managed DNS platform built from five cooperating components: Dock, the cloud tenant server and management plane; Lighthouse, a hardened on-premises resolver for a physical site; Shipyard, a connector that scrapes zone data out of an internal or legacy DNS source and syncs it to Dock; GNC (Guidance, Navigation, and Control), a lightweight endpoint agent that gives roaming laptops the same protection wherever they connect; and Ship, the general term for any client device that simply uses a Lighthouse as its resolver.
Resolver engine
The DNS resolution engine underneath both Lighthouse and Dock's own embedded cloud-side resolver is built from scratch rather than wrapping an existing forwarder. It handles iterative resolution with referral-following and CNAME-chain walking, RFC 2308-compliant negative caching, and serves DNS over UDP, TCP, DoH, and DoT from one shared query pipeline. Every transport shares the same cache and the same access-control layer, which defaults to private/loopback-only access.
Tenant isolation
Every tenant is automatically provisioned a fully isolated environment the moment it goes active — its own dedicated application containers and its own dedicated Postgres instance, not shared tables with another tenant's data a row away. This isn't an opt-in upgrade; it's the default for every new tenant, with no separate step an operator has to remember to take.
Dock's own shared Postgres cluster, with row-level security enforcing tenant boundaries at the database layer, is the baseline underneath this — the application connects as a non-owner role so RLS actually applies, not just as a convention, and every tenant-scoped query runs through an explicit tenant-scoping wrapper rather than trusting an application-level filter alone. It's what a tenant's traffic automatically falls back to for the brief window between being created and finishing its own dedicated provisioning, and remains independently enforced even once that's done. Query logs (DNS request/response history) are held in a separate ClickHouse store, also tenant-scoped, with configurable per-tenant retention.
Device identity & the fleet API
Every Lighthouse, Shipyard connector, and GNC agent authenticates to Dock over a dedicated mutual-TLS API, separate from the plain-HTTPS tenant portal. Each device holds its own certificate and private key, issued by a per-deployment certificate authority, and a device only becomes trusted after an operator or tenant admin explicitly approves its pairing request — nothing is trusted by default, and a revoked device's certificate stops working immediately, not on some future sync.
Deployment model
Lighthouse and Shipyard ship as Docker images; a first-boot hardening script (or an equivalent cloud-init flow for cloud-hosted boxes) locks down the host — firewall rules, unattended security upgrades, SSH key-only access — before the container ever starts. GNC ships as a small, dependency-free binary for Windows, macOS, and Linux, installable as a real background service on all three. None of this software is fetched from source control directly: every download in the tenant portal — the Lighthouse VM bootstrap file, the hardening script, every GNC binary — is served by Dock itself, so using SailDNS never requires access to our engineering systems. A scripted or MDM-driven rollout can skip typing a hostname entirely: every installer accepts a single install ID (a stable, unguessable UUID from the tenant portal) and resolves the rest itself — the device still shows up pending until an admin explicitly approves it, exactly like a manual install.
Resilience
A Lighthouse and a Shipyard connector on the same site network can talk to each other directly, not just through Dock — so a Lighthouse keeps getting fresh internal DNS data even during a full outage of the cloud control plane, the same way it already answers ordinary queries without a round-trip to the cloud. Trust for that direct link is still anchored in Dock (a device only earns it by being an explicitly approved Lighthouse for that same tenant), refreshed periodically rather than checked on every request, so the link keeps working through a brief Dock outage rather than failing along with it. Each Lighthouse also exposes a local, LAN-reachable status page showing exactly this: is it connected to Dock right now, and can it reach the internal DNS source it depends on.
Threat intelligence & blocking
Every Lighthouse and GNC agent enforces a shared blocklist compiled from live threat intelligence feeds, refreshed on a schedule and distributed the same way as every other piece of fleet configuration — over the authenticated fleet API, not a best-effort public download. This protection is always on for every tenant and can't be switched off from the tenant side, even by a compromised or careless admin account. On top of it, each tenant can maintain their own additional block list — reporting a specific domain or IP directly, or subscribing to an external list (an ad-blocking hosts file, for instance) that Dock keeps in sync automatically. A manually reported entry is visible to us for review, but takes effect for that tenant immediately; it's additive to the shared list, never a way to weaken it.