>On Sun, Jun 17, 2001 at 11:53:12PM +0000, John D. Shearer wrote:
>> I would like to submit a new module for consideration but want some feedback

>> first.  The module name is Net::DHCPparse.  The concept is that you give
it
>> an ISC 'dhcpd.leases' file (or a copy) and it will parse that file and return

>> a hash with the keys being the IP address contained in the leases and the
values
>> being a fixed length record containing the IP address, most recent lease
timestamp,
>> MAC address, and client name.
>> 
>> I have seen people asking about a DHCP parsing program and I have been using

>> this routine for some time with great success.  Some have balked at the fixed

>> length record, but I like it for web page formatting and the pod contains
a
>> short script to parse the record into individual fields if needed (using
unpack).
>> 
>> 
>> Any thoughts on this would be appreciated - especially on naming.
>
>    Well, it should be able to parse any IHC config files (as they're all
>the same syntax) -- at least BIND and DHCP, off the top of my head.  It
>would be good if the name reflected that level of generality.
>
>    Also, the Net:: namespace is all about network protocols, not file
>formats or parsing.  How about Text::IHCparse?
>
I absolutely see your point on naming and will make that change before submission.
 However, this script is designed to work specifically with the dynamic lease
files of DHCP and not the config files, so I'm not sure how it would work with
BIND.

(Just to show off my ignorance, what is IHC?)

John

Reply via email to