[Pdns-users] Zone2sql Question

Josh Barron jbarron at zayo.com
Tue Feb 1 17:40:30 UTC 2011

Thank you Juergen, 
I will give it a shot.

Josh Barron
System Administrator | Zayo Bandwidth

-----Original Message-----
From: pdns-users-bounces at mailman.powerdns.com
[mailto:pdns-users-bounces at mailman.powerdns.com] On Behalf Of Juergen
Sent: Monday, January 31, 2011 2:02 PM
To: pdns-users at mailman.powerdns.com
Subject: Re: [Pdns-users] Zone2sql Question


> ----------------------------------------------------------------------
> Message: 1
> Date: Mon, 31 Jan 2011 14:21:44 -0500
> From: "Josh Barron" <jbarron at zayo.com>
> Subject: [Pdns-users] Zone2sql Question
> To: <pdns-users at mailman.powerdns.com>
> Message-ID:
<D1F852273594CD4EA99D9E349469786D0D918862 at EXVS03.hostedexchange.com>
> Content-Type: text/plain; charset="us-ascii"
> I have a directory of reverse DNS zones exported into txt files from a

> proprietary DNS system (not bind).  They are exported in valid BIND 
> format, unfortunately, they did not include a named.conf file.
I think, you only need a very minimal named.conf, which may be generated
via a small shell-script:

        echo 'options {
                directory "/path/to/zonefile-directory";
        };' > named.conf
        while read domain; do
                echo "zone \"${domain}\" {
                        type master;
                        file \"${domain}\";
                };" >> named.conf
        done < domainlist

Maybe, this small script will do the job, if the name of the zonefile is
identical to the domainname, for which the zonefile is for (path has to
be adjusted and the domains should be listet in the file "domainlist").
Please do *not* overwrite an existing named.conf, if you have one,
because in real "named.conf", ther maybe lots of more entries (about
rights to access Zones or initiate zone-transfers, about logging, etc.).
	Juergen Ilse			(juergen at usenet-verwaltung.de)
Ein Domainname (auch wenn er Teil einer Mailadresse ist) ist nur ein
Name, nicht mehr und nicht weniger ...
Pdns-users mailing list
Pdns-users at mailman.powerdns.com

More information about the Pdns-users mailing list