]> granicus.if.org Git - pdns/commitdiff
Merge branch 'master' into docs-fix-numerous-things-big-chain
authorPieter Lexis <pieterlexis@users.noreply.github.com>
Thu, 2 May 2019 11:35:13 +0000 (13:35 +0200)
committerGitHub <noreply@github.com>
Thu, 2 May 2019 11:35:13 +0000 (13:35 +0200)
1  2 
docs/backends/generic-mysql.rst
docs/guides/basic-database.rst
docs/modes-of-operation.rst
docs/settings.rst

Simple merge
index 8396096ef02be6bb2d594572fe4c62cc4958cf12,620e7a6709c34594e528dd8a7448f0d4dfeb0d72..bca3a9cee1f5b25dc1e3ab9320bb6f5b2e9f83da
@@@ -46,11 -46,24 +46,25 @@@ Example: configuring MySQ
  --------------------------
  
  Connect to MySQL as a user with sufficient privileges and issue the
- following commands:
+ following commands below if you are running the 4.2 or master version of PowerDNS:
+ Please find `the 4.1 schema on GitHub <https://github.com/PowerDNS/pdns/blob/rel/auth-4.1.x/modules/gmysqlbackend/schema.mysql.sql>`_.
  
  .. literalinclude:: ../../modules/gmysqlbackend/schema.mysql.sql
 +   :language: SQL
  
+ We recommend you add the following MySQL statements as well. These will add
+ foreign key constraints to the tables in order to automate deletion of records, key
+ material, and other information upon deletion of a domain from the
+ domains table. These will only work on the InnoDB storage engine, but if you
+ followed our guide so far, that's exactly the engine we are using.
+ The following SQL does the job:
+ .. literalinclude:: ../../modules/gmysqlbackend/enable-foreign-keys.mysql.sql
  Now we have a database and an empty table. PowerDNS should now be able
  to launch in monitor mode and display no errors:
  
index 26cfed8422b9bd353065b2c6077028ff42fba895,4323d1a6ef6dfe9481104c666639e3f96c01eabb..9eafb750f4e6d196737e2438d7274aff6a34e98c
@@@ -205,12 -201,12 +205,13 @@@ itself as a slave for that zone
  Before a supermaster notification succeeds, the following conditions
  must be met:
  
- - :ref:`setting-supermaster` support must be enabled
 - - :ref:`setting-superslave` support must be enabled
 - - The supermaster must carry a SOA record for the notified domain
 - - The supermaster IP must be present in the 'supermasters' table
 - - The set of NS records for the domain, as retrieved by the slave from the supermaster, must include the name that goes with the IP address in the supermasters table
 - - If your master sends signed NOTIFY it will mark that TSIG key as the TSIG key used for retrieval as well
 - - If you turn off :ref:`setting-allow-unsigned-supermaster`, then your supermaster(s) are required to sign their notifications.
++
++- :ref:`setting-superslave` support must be enabled
 +- The supermaster must carry a SOA record for the notified domain
 +- The supermaster IP must be present in the 'supermaster' table
 +- The set of NS records for the domain, as retrieved by the slave from the supermaster, must include the name that goes with the IP address in the supermaster table
 +- If your master sends signed NOTIFY it will mark that TSIG key as the TSIG key used for retrieval as well
 +- If you turn off :ref:`setting-allow-unsigned-supermaster`, then your supermaster(s) are required to sign their notifications.
  
  .. warning::
    If you use another PowerDNS server as master and have
Simple merge