opn_list_dnsmasq_leases
Retrieve active DHCPv4 and DHCPv6 leases from the dnsmasq server on OPNsense. Supports filtering by search term and limiting results.
Instructions
List current DHCPv4 and DHCPv6 leases from the dnsmasq DNS/DHCP server.
Use this when the OPNsense instance uses dnsmasq for DHCP (default in 26.x). dnsmasq is a lightweight combined DNS/DHCP server that handles both DHCPv4 and DHCPv6. IPv6 leases appear alongside IPv4 leases in the results. Use opn_scan_config first to check which DHCP backend is active. Returns: dict with 'rows' (list of leases) and 'rowCount' (total).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| search | No | ||
| limit | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||