hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : DNS File Parsing

Forum Jump

DNS File Parsing

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Web Hosting Guru
Join Date: Mar 2001
Location: London, England
Posts: 334

Hi All,

Does anyone know where i can get hold of some scripts to parse DNS files?

Basically, i need to parse the contents of thousands of DNS files in order to put them into a database and i really don't want to do it manually.

Hope someone can help.

Thanks in advance

Sponsored Links
Join Date: Mar 2001
Posts: 16

Im looking for one too...

Aspiring Evangelist
Join Date: Feb 2001
Location: New York City
Posts: 385
I'd be happy to help anyone who needs this.
Email me off the list and I'll give you what we have.

It simply goes through each zone file, gets the IP for the www IN record and correlates the two.

Raj Dutt // CEO // Voxel dot Net Inc //

Sponsored Links
Join Date: Feb 2001
Location: USA
Posts: 866
i'll send an email right away :) thamks


Web Hosting Guru
Join Date: Mar 2001
Location: London, England
Posts: 334
Thumbs up DNS File Parsing

Hi All,

Many thanks for the replies (especially Raj - i'll be contacting you).

After i had posted this message, we went away and wrote a perl module to parse zone files and produce XML (or any other) output. We'll be posting this on CPAN soon, but if anyone would like a copy, please let me know.

Thanks - Mark Castle

WHT Addict
Join Date: Dec 2000
Location: Scotland
Posts: 134
I would also like a look if possible, Im currently trying to import 3500 zone files into a mysql database and its a little awkward.

(E-Mail is


Tony Lucas

Founder & SVP Product
Flexiant Ltd
Simplifying the Cloud - Designed for Service Providers

Web Hosting Master
Join Date: Apr 2001
Location: Denmark, Europe
Posts: 614

I needed to import a large amount of zones into a SQL database too - last year. So I wrote some Perl code to do it -- no problem. But later I found the _correct_ solution (which I am now using).

It's both easier, fast and more correct than using Perl :-)

Simply try downloading the bind sources, and you will find there's a set of support functions for reading in and parsing zone files - returning them as a set of RR records in a node (easy to program with).

With the new Bind9 there's even an example program that imports zone files into a PostgreSQL database. It was very easy to edit that into importing in a MySQL database.

Jens Kristian Søgaard, Mermaid Consulting I/S,,

Last edited by jks; 04-15-2001 at 04:28 PM.
Web Hosting Guru
Join Date: Mar 2001
Location: London, England
Posts: 334
Hi Jens,

Many thanks for the TIP.

You may be interested to know that we went away and wrote a Perl module that parses Zone Files also; It is available to download from CPAN. My colleague Simon Flack took the bare bones of what we needed and wrapped it up as a rather useful utility.

It also produces XML output.

Best Regards
Mark Castle


Related posts from
Title Type Date Posted
Dutch File-Sharing Company WeTransfer Raises $25M to Expand in US Web Hosting News 2015-02-20 13:43:00
Swiss File Hosting Site RapidShare to Shut Down Next Month Web Hosting News 2015-02-11 11:51:32
Dropbox Suffers Temporary Outage Impacting File Sharing and Synchronizing Web Hosting News 2014-03-14 12:11:46
AeroFS Launches Private File Sharing Software Web Hosting News 2013-11-22 17:00:53
Egnyte Launches Program to PRISM-Proof Enterprise Cloud File-sharing Web Hosting News 2013-09-27 13:45:48

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?