Home: Need a Custom or Prewritten Perl Program?: I need a program that...:
I need a program that can fina all master zones in /etc/named.conf.masters



ooshlablu
New User

Sep 17, 2009, 12:52 PM


Views: 6210
I need a program that can fina all master zones in /etc/named.conf.masters

Hi all,
i just signed up for the forum today. I've been trying to work on a nagios check that will find all master zones in /etc/named.conf.masters, find the relative db files associated with those zones, read the db files, grab the SOA serial, and compare it to all other nameservers in the network. i don't expect there to be a program out there that can do this already. I have the parts about grabbing the SOA serial and comparing it to the serials on the name servers. I haven't found a good way, however to only grab the master zones in conf.masters. This is the most important part, since the config is very messy and has slave sub zones listed as well. If there is a way to grab the views and the associated keys with the master zones, that would be lovely as well.

Any help would be appreciated.

Thanks,

OOSH


shest75
Novice

Oct 27, 2009, 11:41 AM


Views: 5991
Re: [ooshlablu] I need a program that can fina all master zones in /etc/named.conf.masters

Bonjour,
Please can you give a sample of the file and the output you expect ?
Thanks


nazgab4
New User

Nov 20, 2009, 2:24 PM


Views: 5895
Re: [ooshlablu] I need a program that can fina all master zones in /etc/named.conf.masters

It seems all is needed is a good regex (regular expression), maybe more than one.

Written one for parsing pages from the BigBrother site.

Can you post a sample (snippet) of the named.conf.masters ?