Map fleet IPv6 overlay addresses in Nebula mesh hostMap and resolver #310

Closed
opened 2026-10-11 11:56:25 +01:00 by nimmo · 0 comments
Owner

Context

All fleet v2 Nebula certificates (Vega, Lyra, Lena, Electra, Nova, Mass-storage, Media1, Nimmog-de, Pangolin-VPS, Phone, Router) have been minted with IPv6 overlay addresses in the fd56:f458:569c::<id>/64 subnet. However, modules/networking/nebula.nix currently has two gaps in its dual-stack address mapping:

  1. Missing IPv6 Host Map Entries: nixosConfig.nebula.ipv6HostMap currently includes only pangolin-vps, nova, mass-storage, media1, nimmog-de, router, phone, and electra. The active NixOS nodes vega (fd56:f458:569c::2), lyra (fd56:f458:569c::3), and lena (fd56:f458:569c::21) are missing. Consequently, /etc/hosts on peers and CoreDNS static zones on resolver nodes lack AAAA records for these hosts.
  2. Local Self-Resolution Gap: networking.hosts in modules/networking/nebula.nix currently excludes the local host (lib.filterAttrs (name: _: name != hostname)). As a result, <hostname>.mesh does not resolve locally on the node hosting a service. Services or local agents referencing vega.mesh while running on Vega cannot resolve their own mesh name via /etc/hosts.

Scope

  • Add confirmed IPv6 overlay addresses for vega, lyra, and lena to nixosConfig.nebula.ipv6HostMap in modules/networking/nebula.nix.
  • Enable local self-resolution so that <hostname>.mesh (and bare <hostname> if applicable) resolves locally on the host itself (e.g. mapping to loopback 127.0.0.1/::1 or the host's overlay IPs).
  • Ensure CoreDNS static zone generation in coreDnsStaticZones emits correct A and AAAA records for all active mesh members.
  • Validate configuration across all fleet host evaluations.

Checklist

  • Add vega (fd56:f458:569c::2), lyra (fd56:f458:569c::3), and lena (fd56:f458:569c::21) to ipv6HostMap default in modules/networking/nebula.nix.
  • Determine and implement self-resolution policy in networking.hosts so <hostname>.mesh resolves on each host without breaking local binding or external reachability.
  • Verify /etc/hosts generation and CoreDNS static zones on all affected NixOS host configurations.
  • Run nix flake check and all repository validation checks.
  • Deploy and verify end-to-end resolution (getent ahosts <name>.mesh, ping6 <name>.mesh) across both local and remote mesh peers.
## Context All fleet v2 Nebula certificates (Vega, Lyra, Lena, Electra, Nova, Mass-storage, Media1, Nimmog-de, Pangolin-VPS, Phone, Router) have been minted with IPv6 overlay addresses in the `fd56:f458:569c::<id>/64` subnet. However, `modules/networking/nebula.nix` currently has two gaps in its dual-stack address mapping: 1. **Missing IPv6 Host Map Entries**: `nixosConfig.nebula.ipv6HostMap` currently includes only `pangolin-vps`, `nova`, `mass-storage`, `media1`, `nimmog-de`, `router`, `phone`, and `electra`. The active NixOS nodes `vega` (`fd56:f458:569c::2`), `lyra` (`fd56:f458:569c::3`), and `lena` (`fd56:f458:569c::21`) are missing. Consequently, `/etc/hosts` on peers and CoreDNS static zones on resolver nodes lack AAAA records for these hosts. 2. **Local Self-Resolution Gap**: `networking.hosts` in `modules/networking/nebula.nix` currently excludes the local host (`lib.filterAttrs (name: _: name != hostname)`). As a result, `<hostname>.mesh` does not resolve locally on the node hosting a service. Services or local agents referencing `vega.mesh` while running on Vega cannot resolve their own mesh name via `/etc/hosts`. ## Scope - Add confirmed IPv6 overlay addresses for `vega`, `lyra`, and `lena` to `nixosConfig.nebula.ipv6HostMap` in `modules/networking/nebula.nix`. - Enable local self-resolution so that `<hostname>.mesh` (and bare `<hostname>` if applicable) resolves locally on the host itself (e.g. mapping to loopback `127.0.0.1`/`::1` or the host's overlay IPs). - Ensure CoreDNS static zone generation in `coreDnsStaticZones` emits correct A and AAAA records for all active mesh members. - Validate configuration across all fleet host evaluations. ## Checklist - [ ] Add `vega` (`fd56:f458:569c::2`), `lyra` (`fd56:f458:569c::3`), and `lena` (`fd56:f458:569c::21`) to `ipv6HostMap` default in `modules/networking/nebula.nix`. - [ ] Determine and implement self-resolution policy in `networking.hosts` so `<hostname>.mesh` resolves on each host without breaking local binding or external reachability. - [ ] Verify `/etc/hosts` generation and CoreDNS static zones on all affected NixOS host configurations. - [ ] Run `nix flake check` and all repository validation checks. - [ ] Deploy and verify end-to-end resolution (`getent ahosts <name>.mesh`, `ping6 <name>.mesh`) across both local and remote mesh peers.
nimmo closed this issue 2026-10-12 14:36:44 +01:00
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/nixos-config#310
No description provided.