Set up DNS
Overalls uses two kinds of DNS. Your domain's apex stays with your normal DNS provider and points at your Marshall hosts. A subzone, apps.<your-domain>, is delegated to Audi, which answers for every machine's hostname itself. That's what lets a machine move between hosts without you touching DNS. It also conserves scarce IPv4 addresses: you can create as many machines as you like, and they share the host's IPv4 address between them.
- You create
- One apex A record per Marshall host, two to eight
nsA records, and one NS delegation - Audi serves
<machine>.apps.<your-domain>, and the wildcard certificate challenge- Ports
- UDP and TCP 53 on each Audi DNS host; 22, 80 and 443 on each Audi gateway
┌─ your DNS provider · example.com ──────────────┐
│ example.com A one per Marshall host │
│ ns1.example.com A Audi DNS host 1 │
│ ns2.example.com A Audi DNS host 2 │
│ ns3, ns4 … A optional, up to eight │
│ apps.example.com NS ns1, ns2 (, ns3, ns4) │
└───────────────────────┬────────────────────────┘
│ delegated
▼
┌─ Audi DNS · authoritative for apps.example.com ─────────────┐
│ <machine>.apps.example.com A gateway on its host │
│ TTL up to 20 s │
│ _acme-challenge.apps.example.com TXT wildcard DNS-01 │
└─────────────────────────────────────────────────────────────┘
apps.1. Choose where Audi DNS runs
Audi doesn't need hosts of its own. Its DNS role can run on your Marshall control-plane hosts, and on Lilly hosts too. We recommend running it in several places: the module needs two to eight nameservers, and spreading them across hosts keeps DNS answering when one goes down. Each one needs a stable public IPv4 address that's reachable on UDP and TCP port 53. Every Lilly host also runs an Audi gateway, which carries SSH and web traffic to its own machines, but gateways don't need DNS records of their own.
2. Create the records at your DNS provider
| Name | Type | Value |
|---|---|---|
<your-domain> | A | One record per Marshall host, each with that host's public address. Browsers, sign-in links, HTTP-01 certificates and Porsche all use this name. |
ns1.<your-domain> | A | The first Audi DNS host |
ns2.<your-domain> | A | The second Audi DNS host |
ns3, ns4 … | A | Optional extra Audi DNS hosts, up to eight in total |
apps.<your-domain> | NS | ns1.<your-domain>, ns2.<your-domain>, and any others |
Porsche, the SSH gateway, runs on the Marshall hosts and answers on port 22 of these same apex addresses, so ssh <your-domain> reaches it with no extra records. Keep the apex records at your provider. Audi serves only the delegated subzone and never answers for the apex. With several Marshall hosts behind one name, a certificate challenge can arrive at any of them, so list the other frontends as services.marshallProxy.acme.http01.peers on each one (see Deploy the control plane).
3. Enable Audi DNS
services.audiDns = {
enable = true;
zone = "apps.example.com";
nameservers = [ "ns1.example.com" "ns2.example.com" ];
mailbox = "hostmaster.example.com";
controlPlane = "https://control.internal.example:5443";
caFile = "/etc/overalls/service-ca.crt";
credentialFile = "${config.services.overallsSecrets.bundles.audi-dns.directory}/token";
secretUnits = [ config.services.overallsSecrets.bundles.audi-dns.unit ];
openFirewall = true;
};
Every Audi DNS host lists the same zone and the same set of nameservers. mailbox is the SOA contact address, written in DNS form. The module refuses fewer than two or more than eight nameservers. controlPlane reaches Marshall's private fleet listener; install its CA at the caFile path.
4. Enroll Audi with Marshall
Each Audi DNS server and each gateway authenticates to Marshall with its own token. Gateways need an enrolled Lilly host; complete host enrollment before issuing their tokens. Issue the tokens with the operator CLI and write them to private files outside your checkout:
bin/marshall eval 'Marshall.Operations.CLI.main()' audi-dns-rotate audi-host1-dns /private/host1-dns.token bin/marshall eval 'Marshall.Operations.CLI.main()' audi-gateway-rotate audi-host1 HOST_UUID ADDRESS /private/host1.token
Check each file with audi-dns-verify or audi-gateway-verify. Then encrypt the tokens into each host's secret documents with tools/buck2 run //:secrets -- encrypt and run tools/buck2 run //:secrets -- check. HOST_UUID is the enrolled Lilly host's ID, and ADDRESS is the gateway's public address.
5. Enable each Audi gateway
On each enrolled Lilly host, enable the local connector and gateway. Move administrative SSH to port 2222 and verify access there before removing port 22, as described under Porsche setup.
services.openssh.ports = [ 2222 ];
services.lilly.ingress.enable = true;
services.audi = {
enable = true;
bindAddress = "192.0.2.11";
hostId = config.services.lilly.hostId;
controlPlane = "https://control.internal.example:5443";
caFile = "/etc/overalls/service-ca.crt";
credentialFile = "${config.services.overallsSecrets.bundles.audi.directory}/token";
secretUnits = [ config.services.overallsSecrets.bundles.audi.unit ];
openFirewall = true;
tls = {
enable = true;
zone = "apps.example.com";
browserOrigin = "https://example.com";
};
};
Replace 192.0.2.11 with the public service address assigned to this host and enrolled as ADDRESS above. If Porsche shares the host, it needs a different explicit address, such as the primary 192.0.2.10 in the enrollment guide. Audi uses its service address for ports 22, 80 and 443. Its local Lilly identity and the enrolled gateway's HOST_UUID must match.
6. Configure the wildcard issuer
Set the same ingress zone on every Marshall host, Audi gateway and DNS replica. Configure one Marshall instance to request the fleet's Let's Encrypt wildcard:
services.marshall.ingress = {
zone = "apps.example.com";
wildcardAcme = {
issuerInstance = "node01";
directory = "https://acme-v02.api.letsencrypt.org/directory";
issuerCaFile = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
certificateRootsFile = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";
# Set only after accepting the selected CA's terms.
acceptTerms = true;
nameservers = [
{ address = "192.0.2.11"; }
{ address = "198.51.100.11"; }
];
};
};
node01 matches the local instance in the deployment example. Put wildcardAcme on that issuer's host and replace the nameserver addresses with your two to eight authoritative Audi DNS replicas. Audi trusts Let's Encrypt's delivered chain through the public CA bundle by default; caFile above separately authenticates the private Marshall endpoint.
Marshall requests *.apps.<your-domain> using DNS-01. Every Audi DNS replica publishes the challenge record, so you don't need DNS provider credentials for it. Marshall installs the certificate on each gateway and waits for its installation receipt before publishing machine routes. Establish database and Cloak-keyring backups before relying on the wildcard, and configure Marshall's SSH host CA as described in gateway setup.
7. Validate
dig @ns1.example.com apps.example.com SOA dig @ns2.example.com apps.example.com SOA dig +trace apps.example.com NS
Check that UDP and TCP 53 reach every Audi DNS host, and that 22, 80 and 443 reach every gateway, from a network outside your fleet. Then stop one audi-dns at a time and confirm the others keep answering. In Administrator audit → Certificates, check the active wildcard generation and an installation receipt from every gateway. Verify an actual machine hostname over HTTPS through each enrolled gateway address.
Full reference: docs/services/audi.md
Full reference: docs/operations/fleet-network.md