[Pdns-users] Zone2sql Question
Leen Besselink
leen at consolejunkie.net
Tue Feb 1 22:16:56 UTC 2011
On 02/01/2011 06:40 PM, Josh Barron wrote:
> Thank you Juergen,
> I will give it a shot.
>
> Josh Barron
> System Administrator | Zayo Bandwidth
>
Hi Juergen/Josh,
I think if the filename does not match the zone but you have the domainname in the zonefile you could also try:
for zonefile in `echo *.zone`
do
zone2sql --zone=$zonefile >> output.txt
done
or something similair, because zone2sql does not need a named.conf it should also work without.
> -----Original Message-----
> From: pdns-users-bounces at mailman.powerdns.com
> [mailto:pdns-users-bounces at mailman.powerdns.com] On Behalf Of Juergen
> Ilse
> Sent: Monday, January 31, 2011 2:02 PM
> To: pdns-users at mailman.powerdns.com
> Subject: Re: [Pdns-users] Zone2sql Question
>
> Hello,
>
>> ----------------------------------------------------------------------
>>
>> 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.).
>
> Tschuess,
> 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
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
> _______________________________________________
> Pdns-users mailing list
> Pdns-users at mailman.powerdns.com
> http://mailman.powerdns.com/mailman/listinfo/pdns-users
More information about the Pdns-users
mailing list