#!/usr/bin/perl
# $Id: export.pl 218 2012-01-05 23:04:18Z kdeugau $
# Absolutely minimal DNS record export script
# (C) 2012 - Kris Deugau <kdeugau@deepnet.cx>

use strict;
use warnings;

# don't remove!  required for GNU/FHS-ish install from tarball
use lib '.';	##uselib##

use DNSDB qw(:ALL);

loadConfig();

open TINYDATA, ">tinydata";

my ($dbh,$msg) = connectDB($config{dbname}, $config{dbuser}, $config{dbpass}, $config{dbhost});
initGlobals($dbh);

export($dbh,'tiny',*TINYDATA);
