Files
dnsmasq-webui/testdata/README.md
T
alex e99b2d0453 Initial commit: dnsmasq web UI
- ASP.NET Core 9 Blazor Web App + Web API
- Hosts file management (read/write, hosts(5) format)
- DHCP static hosts (dhcp-host=, dnsmasq config)
- DHCP leases (read-only, dnsmasq lease file format)
- Reload and status commands (configurable)
- Docker: standalone app image + Dockerfile.dnsmasq (app + dnsmasq)
- docker-compose.test.yml: app + dhcp-client, testdata mount
- Unit tests (Hosts, DhcpHost, Leases, DnsmasqConfig parsers) using testdata
2026-01-31 03:06:46 +10:00

800 B
Raw Blame History

Test data for docker-compose.test.yml

  • hosts – Shared by app and dnsmasq (read/write by app, addn-hosts for dnsmasq).
  • dnsmasq.conf – Sample main config (reference only; not used by the test containers).
  • dnsmasq-test.conf – Config for dnsmasq when run inside the app container (DHCP-only, paths under /data).
  • dnsmasq.d/dhcp.conf – DHCP static hosts; app edits this, dnsmasq loads it via conf-dir.
  • dnsmasq.d/01-other.conf – Other snippet (not managed by app).
  • leases – Empty at start. dnsmasq creates and populates it when the dhcp-client container gets a lease. App reads it (read-only).

All of this is bind-mounted as /data in the app container; the app runs as the main process and dnsmasq runs in the background in the same container.