dnsmasq-leases
Parses dnsmasq lease file declarations
This module is inspired by the dhcpd-leases module, however for the DNSMASQ leases file. The dnsmasq.leases file doesn't appear to have a formal specification but several confirmations of the format exist within the dnsmasq-discuss mailing list, so I have opted to used these.
Installation
Install the module
npm install --save dnsmasq-leases
Usage
const leases = ;const fs = ; let data = fs;console;/* logs[ { timestamp: 2016-10-12T07:59:41.510Z, mac: '00:00:00:00:00:00', ip: '192.168.0.1', host: 'dnsmasq', id: '*' }]*/
Testing
The module has been tested with a limited set of dnsmasq lease examples. Please feel free to add more.