CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

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

Post #1 of 3 (3791 views)
I need a program that can fina all master zones in /etc/named.conf.masters Can't Post

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

Post #2 of 3 (3572 views)
Re: [ooshlablu] I need a program that can fina all master zones in /etc/named.conf.masters [In reply to] Can't Post

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

Post #3 of 3 (3476 views)
Re: [ooshlablu] I need a program that can fina all master zones in /etc/named.conf.masters [In reply to] Can't Post

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 ?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives