PHP Classes

PHP Bind Zone File Parser: Parse Bind configuration to extract DNS records

Recommend this page to a friend!
  Info   View files Example   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 386 All time: 6,673 This week: 100Up
Version License PHP version Categories
bind-zone-parser 1.9GNU Lesser Genera...5.0Networking, PHP 5, Parsers
Description 

Author

This class can parse Bind zone configuration files to extract DNS records.

It takes the name of a Bind 9 DNS server configuration file and extracts the values of several DNS server settings for a zone.

Currently it extracts the values of ORIGIN, RR, SOA and TTL.

Innovation Award
PHP Programming Innovation award nominee
March 2015
Number 8


Prize: One downloadable copy of Komodo IDE
Bind is a very popular software that acts as DNS server.

This class can parse a configuration file of Bind to extract relevant information about the the domains the DNS server is configured to respond.

Manuel Lemos
Picture of Jan Altensen
  Performance   Level  
Name: Jan Altensen <contact>
Classes: 12 packages by
Country: Germany Germany
Age: 30
All time rank: 105466 in Germany Germany
Week rank: 91 Up5 in Germany Germany Up
Innovation award
Innovation award
Nominee: 5x

Example

<?php
use dns\util\ParseZone;
require_once(
'ParseZone.class.php');

$data = file_get_contents('bind9.de.db');

$parser = new ParseZone($data, 'bind9.de.');
$parser->parse();

print_r($parser->getParsedData());


  Files folder image Files  
File Role Description
Plain text file bind9.de.db Example example zone file
Plain text file ParseZone.class.php Class main class
Plain text file test.php Example example

 Version Control Unique User Downloads Download Rankings  
 0%
Total:386
This week:0
All time:6,673
This week:100Up
 User Ratings  
 
 All time
Utility:100%StarStarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:68%StarStarStarStar
Rank:414