File: pdns-backend-mysql.README.Debian

package info (click to toggle)
pdns 4.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 9,876 kB
  • sloc: cpp: 94,929; sh: 5,463; makefile: 2,240; sql: 860; ansic: 668; ruby: 594; yacc: 245; lex: 131; perl: 48; python: 9
file content (28 lines) | stat: -rw-r--r-- 1,057 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Instructions on setting up MySQL as a backend for PowerDNS
----------------------------------------------------------

You should create a database yourself and install the schema into
it. On upgrades you should also upgrade the schema.
You can find the upstream recommended schema here:

   /usr/share/pdns-backend-mysql/schema

Just create a database (for example, named pdns) and then feed these
SQL commands to MySQL to get the default schema:

   mysql -u root -p <database> < \
     /usr/share/pdns-backend-mysql/schema/schema.mysql.sql

Then add your data to the database. An example configuration for
PowerDNS is provided in /usr/share/doc/pdns-backend-mysql/examples/.

It is probably a good idea to protect your configuration file, as
it will contain your database password:

   chmod 0640 /etc/powerdns/pdns.d/gmysql.conf
   chgrp pdns /etc/powerdns/pdns.d/gmysql.conf

Note: in previous versions, the Debian packages used
dbconfig-common, and you can continue to use dbconfig
created databases, but you will have to upgrade the schema
manually.