banger/internal/daemon
Thales Maciel b7f6d1fe1b
Route .vm DNS through systemd-resolved
Banger was already serving VM records on 127.0.0.1:42069, but hosts using systemd-resolved were not routing .vm queries there. That made direct lookups against the local server work while normal host resolution and commands like opencode attach <vm>.vm:4096 failed.\n\nSync resolvectl dns/domain/default-route settings onto the banger bridge when the daemon opens and whenever VM DNS records are published, and revert that bridge-scoped configuration on daemon shutdown. This uses sudo resolvectl because unprivileged resolved reconfiguration on this host requires interactive authentication.\n\nValidation: GOCACHE=/tmp/banger-gocache go test ./..., make build, daemon restart, resolvectl dns/domain br-fc, resolvectl query vrum.vm, and curl http://vrum.vm:4096.
2026-03-22 15:07:22 -03:00
..
capabilities.go Sync host opencode auth into guest work disks 2026-03-21 22:36:13 -03:00
capabilities_test.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
daemon.go Route .vm DNS through systemd-resolved 2026-03-22 15:07:22 -03:00
daemon_test.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
dashboard.go Serve a local web UI from bangerd 2026-03-21 16:47:47 -03:00
dns_routing.go Route .vm DNS through systemd-resolved 2026-03-22 15:07:22 -03:00
dns_routing_test.go Route .vm DNS through systemd-resolved 2026-03-22 15:07:22 -03:00
doctor.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
fastpath_test.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
image_build_ops.go Serve a local web UI from bangerd 2026-03-21 16:47:47 -03:00
image_seed.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
imagebuild.go Stop using kernel IP autoconfig for runtime VMs 2026-03-21 21:54:18 -03:00
imagebuild_test.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
images.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
logger.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
logger_test.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
nat.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
nat_test.go Move helper NAT management into Go 2026-03-17 15:07:49 -03:00
opencode.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
ports.go Refine vm ports output 2026-03-19 18:21:04 -03:00
preflight.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
runtime_assets.go Remove runtime-bundle image dependencies 2026-03-21 18:34:53 -03:00
snapshot.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
snapshot_test.go Harden VM stop cleanup for stale snapshots 2026-03-18 12:28:15 -03:00
tap_pool.go Speed up VM create with work seeds 2026-03-18 21:22:12 -03:00
vm.go Route .vm DNS through systemd-resolved 2026-03-22 15:07:22 -03:00
vm_create_ops.go Manage image artifacts and show VM create progress 2026-03-21 14:48:01 -03:00
vm_test.go Sync host opencode auth into guest work disks 2026-03-21 22:36:13 -03:00
web.go Serve a local web UI from bangerd 2026-03-21 16:47:47 -03:00