Re: Named.conf logical blocks

2011-06-29 Thread Phil Mayers
On 06/28/2011 09:54 PM, Stefan Certic wrote: I am more looking for a solution to read data with perl and convert to some native data structure, like hash reference, or multidimenzional array, so i can access and change data in form of: $named_conf_file-{view1}-{zoneblah} = 'somedata' and then

Re: Named.conf logical blocks

2011-06-29 Thread Chris Buxton
On Jun 29, 2011, at 12:21 AM, Phil Mayers wrote: Or use Config::Parser, or adapt the script I sent round (which in fact was the reason I wrote it); tokenisation of the bind config file is easy, and the core grammar is straightforward because everything is ;-terminated, with the form:

Re: Named.conf logical blocks

2011-06-29 Thread Phil Mayers
On 06/29/2011 02:37 PM, Chris Buxton wrote: Not entirely. There is at least one construct that looks like this (using your terms): thing+ block thing block semicolon For example, within the controls statement: inet * allow { trusted; } keys { some.key; }; Good point.

Named.conf logical blocks

2011-06-28 Thread Stefan Certic
Hi Guys, Does anyone have a sample grammar for pharsing named.conf into a data structure? Perl or PHP are preffered, but anything would be fine just to get a clear picture about grammar and logical blocks. Thanks! -- Stefan Certic RoutoMessaging 48 Charlotte Street London, W1T 2NS United

Re: Named.conf logical blocks

2011-06-28 Thread Phil Mayers
On 06/28/2011 05:53 PM, Stefan Certic wrote: Hi Guys, Does anyone have a sample grammar for pharsing named.conf into a data structure? Perl or PHP are preffered, but anything would be fine just to get a clear picture about grammar and logical blocks. The only think I ever wrote was a quick

Re: Named.conf logical blocks

2011-06-28 Thread David Forrest
On 06/28/2011 05:53 PM, Stefan Certic wrote: Hi Guys, Does anyone have a sample grammar for pharsing named.conf into a data structure? Perl or PHP are preffered, but anything would be fine just to get a clear picture about grammar and logical blocks. I send mine through named-checkconf to

Re: Named.conf logical blocks

2011-06-28 Thread Stefan Certic
I am more looking for a solution to read data with perl and convert to some native data structure, like hash reference, or multidimenzional array, so i can access and change data in form of: $named_conf_file-{view1}-{zoneblah} = 'somedata' and then dump it back into original format. Regards,

RE: Named.conf logical blocks

2011-06-28 Thread Todd Snyder
=rim@lists.isc.org [mailto:bind-users-bounces+tsnyder=rim@lists.isc.org] On Behalf Of Stefan Certic Sent: Tuesday, June 28, 2011 4:55 PM To: bind-users@lists.isc.org; d...@maplepark.com Subject: Re: Named.conf logical blocks I am more looking for a solution to read data with perl

Re: Named.conf logical blocks

2011-06-28 Thread Mark Andrews
In message 201106281853.55303.ste...@routotelecom.com, Stefan Certic writes: Hi Guys, Does anyone have a sample grammar for pharsing named.conf into a data structure? Perl or PHP are preffered, but anything would be fine just to get a clear picture about grammar and logical blocks.