Skip to content

👑 darkone.admin.locate

Fleet host locator (dnf-locate): ssh finds a host wherever it is plugged.

A fleet name resolves to the host’s home address. Once the host roams (another zone, or outside on the tailnet), every ssh nix@<host> — colmena, fleet-update, just enter — would aim at that dead address. Enabled on an admin host, a ProxyCommand routes these connections through dnf-locate.

Paths tried, all derived from the topology:

  • <host>: home address, alone first — the usual case costs one lookup;
  • <host>.<zone domain>: reservation each zone holds for visiting hosts;
  • <host>.tailnet.internal: tailnet address (zone gateways resolve it).

The first path to answer on the port wins.

  • enable bool Route ssh to fleet hosts through dnf-locate (home, zone reservations, tailnet).
darkone.admin.locate.enable = config.darkone.admin.nix.enable;

Source: modules/admin/locate.nix 🡕