@page "/" @rendermode InteractiveServer @inject HttpClient Http Dnsmasq Web UI

Dnsmasq Web UI

Manage DNS hosts and DHCP static assignments for dnsmasq.

@if (_status != null) {
Service: @(_status.dnsmasqStatus ?? "—") @if (_status.reloadCommandConfigured) { · Reload configured }
}
Hosts

Edit the hosts file (/etc/hosts). Add or change static hostname-to-IP mappings.

Open Hosts
DHCP

Manage static DHCP host entries (dhcp-host=). Assign fixed IPs by MAC or hostname.

Open DHCP
Leases

View active DHCP leases (read-only). Refreshes from the leases file on demand.

Open Leases
@code { private HomeStatusDto? _status; private class HomeStatusDto { public string? dnsmasqStatus { get; set; } public bool reloadCommandConfigured { get; set; } } protected override async Task OnInitializedAsync() { try { _status = await Http.GetFromJsonAsync("api/status"); } catch { // Status is optional on home; leave _status null } } }