Backend
The Go server:- Serves the embedded HTML, CSS, and JavaScript UI
- Exposes
/api/configfor UI configuration - Proxies
/api/pdns/...requests toPDNS_API_URL/api/v1/... - Adds the configured
X-API-Keyheader - Converts PowerDNS responses back to browser-friendly JSON
Frontend
The browser app is a static single-page application understatic/.
It handles:
- Zone list and zone detail views
- Record editing forms
- Metadata forms
- Autoprimary management
- Theme selection
- Toast notifications and confirmations
Embedded assets
The server embedstemplates/ and static/ at build time with Go embed.
That means the final binary can run without a separate asset directory.