in reply to Parsing Zonefiles

Unless you have a good reason not to I would be considering generating the zone file directly from your database. It is a technique described in Perl for System Administration and saves parsing the zone file at all.

--
Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

Replies are listed 'Best First'.
Re^2: Parsing Zonefiles
by gellyfish (Monsignor) on Aug 05, 2004 at 11:33 UTC

    Or even better, if you are using bind 9.1 or newer then you can use use LDAP as the storage backend and do away with the zonefiles altogether - you can read about this stuff here.

    /J\

Re^2: Parsing Zonefiles
by Elijah_A (Novice) on Aug 05, 2004 at 06:52 UTC
    Hmmm... now that you mention it... it kinda makes me wonder why I did that in the first place O_o. Anyway, got an online version of that book or the part about zone files?

      Looks like the sample chapter is "Log Files" so you are out of luck, you will have to buy a copy.

      --
      Do not seek to follow in the footsteps of the wise. Seek what they sought. -Basho

        From your link I found the sample codes in tar.gz. I downloaded 'em and found PSA-Chapter05, which contains the DNS part. Thanks =)

        The codes are kinda overwhelming but I think I can understand some of it.