Text::DHCPLeases bug
News, Technical ·Friday December 16, 2011 @ 00:01 EST (link)
I got Honey a laptop (a Hannspree) for her birthday yesterday; and I went to add it to my local auto-DNS updater (an old Perl program I wrote that monitors the DHCP leases file and updates the local TinyDNS source file for certain hosts). Even after adding the new machine, Riva, it wasn't appearing in the DNS. Turns out that the Text::DHCPLeases module that I was using didn't understand the rewind binding state entry and it was matching binding state and clobbering that value; and my program skipped over items without a binding state of active. I made a local patch, and would like to submit a more general patch but really, the whole parse approach needs reworking using something like Parse::RecDescent or at least more systematic tokenizing and translation.