hosted by liquidweb


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

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
  #1  
Old 03-02-2001, 06:58 AM
markcastle markcastle is offline
Web Hosting Guru
 
Join Date: Mar 2001
Location: London, England
Posts: 334
Smile

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
Mark

Reply With Quote


Sponsored Links
  #2  
Old 03-02-2001, 12:46 PM
elijah_jr elijah_jr is offline
Newbie
 
Join Date: Mar 2001
Posts: 16
Smile

Im looking for one too...


Reply With Quote
  #3  
Old 03-04-2001, 04:44 AM
nopzor nopzor is offline
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
http://www.voxel.net // sales@voxel.net

Reply With Quote
Sponsored Links
  #4  
Old 03-04-2001, 05:26 PM
DHWWnet DHWWnet is offline
NOC DOC :)
 
Join Date: Feb 2001
Location: USA
Posts: 866
i'll send an email right away :) thamks

elijaH

Reply With Quote
  #5  
Old 03-07-2001, 08:37 AM
markcastle markcastle is offline
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



Reply With Quote
  #6  
Old 03-07-2001, 10:41 AM
Toons Toons is offline
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@xcalibre.co.uk)

Regards,

Tony Lucas

__________________
Founder & SVP Product
Flexiant Ltd
Simplifying the Cloud - Designed for Service Providers
http://www.flexiant.com

Reply With Quote
  #7  
Old 04-15-2001, 04:22 PM
jks jks is offline
Web Hosting Master
 
Join Date: Apr 2001
Location: Denmark, Europe
Posts: 614
Wink

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,
jens@mermaidconsulting.dk,
http://www.mermaidconsulting.com/


Last edited by jks; 04-15-2001 at 04:28 PM.
Reply With Quote
  #8  
Old 04-17-2001, 07:14 AM
markcastle markcastle is offline
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.

http://search.cpan.org/search?dist=DNS-ZoneParse

It also produces XML output.

Best Regards
Mark Castle

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Zimbra Acquires Mezeo to Add Private File Sync-and-Share for Enterprises, Service Providers Web Hosting News 2014-07-15 16:23:14
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
ownCloud Releases Latest Version of Enterprise Private Cloud Platform Web Hosting News 2013-07-16 14:20:14


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
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com 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?