Files
harmony/opnsense-config/src
Jean-Gabriel Gill-Couture 3b59cb605d feat(opnsense): implement DnsServer trait via dnsmasq API
Replaces the four todo!() stubs in infra/opnsense/dns.rs with
implementations backed by the typed dnsmasq API in opnsense-config.

- register_hosts: iterates DnsRecord list, creates host overrides
- list_records: returns A/AAAA records from dnsmasq host overrides
- register_dhcp_leases: toggles regdhcp/regdhcpstatic flags
- remove_record: returns an error (trait method is sync, dnsmasq API
  is async — follow-up needed to make the trait method async)

Adds DnsHostEntry, list_dns_hosts, add_dns_host (idempotent —
updates IP if hostname+domain exists), remove_dns_host, and
set_register_dhcp_leases to opnsense-config dnsmasq module.
2026-04-10 07:08:53 -04:00
..