banger/internal/daemon
Thales Maciel 0a0b0b617b
Replace mapdns with daemon DNS
Serve daemon-managed .vm names directly from bangerd on 127.0.0.1:42069 instead of shelling out to mapdns. This keeps DNS state tied to VM lifecycle and lets the daemon rebuild records from running VMs after startup or reconcile.

Add a small in-process authoritative DNS server, register and remove records from the VM start/stop/delete paths, and show the listener in daemon status. Remove the mapdns config and preflight surface, stop helper-flow DNS publishing in customize.sh and interactive.sh, drop dns.sh from the runtime bundle, and update docs/tests for the new local-resolver integration model.

Validated with GOCACHE=/tmp/banger-gocache go test ./..., GOCACHE=/tmp/banger-gocache make build, and bash -n customize.sh interactive.sh.
2026-03-17 15:49:35 -03:00
..
daemon.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
daemon_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
images.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
logger.go Add structured daemon lifecycle logs 2026-03-16 16:16:28 -03:00
logger_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -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
preflight.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
snapshot.go Fix VM lifecycle issues behind verify.sh 2026-03-17 14:43:09 -03:00
snapshot_test.go Rollback partial dm snapshot startup 2026-03-16 14:06:17 -03:00
vm.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00
vm_test.go Replace mapdns with daemon DNS 2026-03-17 15:49:35 -03:00