AM_CPPFLAGS=@MYSQL_inc@ @THREADFLAGS@ $(BOOST_CPPFLAGS)
lib_LTLIBRARIES = libgmysqlbackend.la
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+ dnssec.schema.mysql.sql no-dnssec.schema.mysql.sql
libgmysqlbackend_la_SOURCES=gmysqlbackend.cc gmysqlbackend.hh \
- smysql.hh smysql.cc
-
+ smysql.hh smysql.cc
libgmysqlbackend_la_LDFLAGS=-module -avoid-version $(MYSQL_lib)
-
-# -Wl,-Bstatic -lpq++ -lpq -Wl,-Bdynamic -lssl -lcrypt -lcrypto
-
-
-
AM_CPPFLAGS=-I@PGSQL_incdir@ @THREADFLAGS@
lib_LTLIBRARIES = libgpgsqlbackend.la
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+ dnssec.schema.pgsql.sql no-dnssec.schema.pgsql.sql
libgpgsqlbackend_la_SOURCES=gpgsqlbackend.cc gpgsqlbackend.hh \
- spgsql.hh spgsql.cc
+ spgsql.hh spgsql.cc
## Filter out known build breakers for Mac OS X
## Don't remove the empty lines between if and endif or tabs will screw up your makefile
endif
libgpgsqlbackend_la_LIBADD=-lssl @LIBCRYPT@ -lcrypto
-
AM_CPPFLAGS=@THREADFLAGS@ $(BOOST_CPPFLAGS)
lib_LTLIBRARIES = libgsqlite3backend.la
-EXTRA_DIST=OBJECTFILES OBJECTLIBS
+EXTRA_DIST=OBJECTFILES OBJECTLIBS \
+ dnssec.schema.sqlite3.sql no-dnssec.schema.sqlite3.sql
libgsqlite3backend_la_SOURCES=gsqlite3backend.cc gsqlite3backend.hh
EXTRA_DIST = dnslabeltext.rl dnslabeltext.cc mtasker.cc inflighter.cc docs/pdns_control.8 \
docs/pdns_server.8 docs/zone2sql.8 docs/zone2ldap.8 docs/pdnssec.8 \
docs/dnsreplay.8 docs/dnsscope.8 docs/dnswasher.8 docs/pdnssec.8 docs/zone2ldap.8 \
- dnssec.schema.mysql.sql dnssec.schema.pgsql.sql dnssec.schema.sqlite3.sql \
- no-dnssec.schema.mysql.sql no-dnssec.schema.pgsql.sql no-dnssec.schema.sqlite3.sql \
bind-dnssec.schema.sqlite3.sql bindparser.h
SUBDIRS= $(POLARSSL_SUBDIR) ext/yahttp
<sect1 id="configuring-mysql"><title>Example: configuring MySQL</title>
<para>
Connect to MySQL as a user with sufficient privileges and issue the following commands:
- <programlisting><xi:include href="../no-dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gmysqlbackend/no-dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
<screen>
GRANT SELECT ON supermasters TO pdns;
</para>
<para>
The default setup conforms to the following schema:
- <programlisting><xi:include href="../no-dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gmysqlbackend/no-dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
Zone2sql with the --gmysql flag also assumes this layout is in place.
</para>
<para>
To support or migrate to DNSSEC, the following SQL statements must be executed:
- <programlisting><xi:include href="../dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gmysqlbackend/dnssec.schema.mysql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
For full migration notes, please see <xref linkend="dnssec-migration"/>.
<sect2><title>PostgreSQL specifics</title>
<para>
The default setup conforms to the following schema, which you should add to a PostgreSQL database.
- <programlisting><xi:include href="../no-dnssec.schema.pgsql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
Zone2sql with the --gpgsql flag also assumes this layout is in place.
</para>
<para>
To support DNSSEC or to migrate to DNSSEC, the following statements have to be issued:
- <programlisting><xi:include href="../dnssec.schema.pgsql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gpgsqlbackend/dnssec.schema.pgsql.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
For full migration notes, please see <xref linkend="dnssec-migration"/>.
Before you can use this backend you first have to set it up and fill it with data.
The default setup conforms to the following schema:
- <programlisting><xi:include href="../no-dnssec.schema.sqlite3.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
This schema contains all elements needed for master, slave and superslave operation.
To support DNSSEC, or to migrate to DNSSEC, the following statements must be issued:
</para>
<para>
- <programlisting><xi:include href="../dnssec.schema.sqlite3.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
+ <programlisting><xi:include href="../../modules/gsqlite3backend/dnssec.schema.sqlite3.sql" parse="text" xmlns:xi="http://www.w3.org/2001/XInclude"/></programlisting>
</para>
<para>
For full migration notes, please see <xref linkend="dnssec-migration"/>.
|| echo ignoring mysqladmin drop failure
mysqladmin --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" create "$GMYSQLDB"
mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
- "$GMYSQLDB" < ../pdns/no-dnssec.schema.mysql.sql
+ "$GMYSQLDB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
tosql gmysql | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
"$GMYSQLDB"
|| echo ignoring mysqladmin drop failure
mysqladmin --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" create "$GMYSQLDB"
mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
- "$GMYSQLDB" < ../pdns/no-dnssec.schema.mysql.sql
+ "$GMYSQLDB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
- "$GMYSQLDB" < ../pdns/dnssec.schema.mysql.sql
+ "$GMYSQLDB" < ../modules/gmysqlbackend/dnssec.schema.mysql.sql
tosql gmysql | mysql --user="$GMYSQLUSER" --password="$GMYSQLPASSWD" --host="$GMYSQLHOST" \
"$GMYSQLDB"
dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring dropdb failure
createdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring createdb failure # FIXME
- psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/no-dnssec.schema.pgsql.sql
- psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/dnssec.schema.pgsql.sql
+ psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql
+ psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/dnssec.schema.pgsql.sql
tosql gpgsql | psql --user="$GPGSQLUSER" "$GPGSQLDB" 2>&1 | uniq -c
dropdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring mysqladmin drop failure
createdb --user="$GPGSQLUSER" "$GPGSQLDB" || echo ignoring mysqladmin drop failure
- psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../pdns/no-dnssec.schema.pgsql.sql
+ psql --user="$GPGSQLUSER" "$GPGSQLDB" < ../modules/gpgsqlbackend/no-dnssec.schema.pgsql.sql
tosql gpgsql | psql --user="$GPGSQLUSER" "$GPGSQLDB" 2>&1 | uniq -c
gsqlite3-nodnssec)
rm -f pdns.sqlite3
- sqlite3 pdns.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
+ sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
tosql gsqlite | sqlite3 pdns.sqlite3
echo ANALYZE\; | sqlite3 pdns.sqlite3
;;
opendbx-sqlite3)
rm -f pdns-opendbx.sqlite3
- sqlite3 pdns-opendbx.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
+ sqlite3 pdns-opendbx.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
tosql gsqlite | sqlite3 pdns-opendbx.sqlite3
sqlite3 pdns-opendbx.sqlite3 "ALTER TABLE domains ADD status CHARACTER(1) NOT NULL DEFAULT 'A'; \
ALTER TABLE domains ADD auto_serial INTEGER DEFAULT 0;"
;;
gsqlite3 | gsqlite3-nsec3 | gsqlite3-nsec3-optout)
rm -f pdns.sqlite3
- sqlite3 pdns.sqlite3 < ../pdns/no-dnssec.schema.sqlite3.sql
- sqlite3 pdns.sqlite3 < ../pdns/dnssec.schema.sqlite3.sql
+ sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
+ sqlite3 pdns.sqlite3 < ../modules/gsqlite3backend/dnssec.schema.sqlite3.sql
tosql gsqlite | sqlite3 pdns.sqlite3
echo ANALYZE\; | sqlite3 pdns.sqlite3
|| echo ignoring mysqladmin drop failure
mysqladmin --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" create "$GMYSQL2DB"
mysql --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" \
- "$GMYSQL2DB" < ../pdns/no-dnssec.schema.mysql.sql
+ "$GMYSQL2DB" < ../modules/gmysqlbackend/no-dnssec.schema.mysql.sql
mysql --user="$GMYSQL2USER" --password="$GMYSQL2PASSWD" --host="$GMYSQL2HOST" \
- "$GMYSQL2DB" < ../pdns/dnssec.schema.mysql.sql
+ "$GMYSQL2DB" < ../modules/gmysqlbackend/dnssec.schema.mysql.sql
for zone in $(grep zone named.conf | cut -f2 -d\" | tac)
do
then
context=${context}-presigned
rm -f pdns.sqlite31
- sqlite3 pdns.sqlite31 < ../pdns/no-dnssec.schema.sqlite3.sql
- sqlite3 pdns.sqlite31 < ../pdns/dnssec.schema.sqlite3.sql
+ sqlite3 pdns.sqlite31 < ../modules/gsqlite3backend/no-dnssec.schema.sqlite3.sql
+ sqlite3 pdns.sqlite31 < ../modules/gsqlite3backend/dnssec.schema.sqlite3.sql
for zone in $(grep zone named.conf | cut -f2 -d\" | tac)
do