summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2014-03-18 23:01:37 +0000
committerGerrit Code Review <review@openstack.org>2014-03-18 23:01:37 +0000
commit955e2df067c5db59280d95e8ce7dbcc28473b9e4 (patch)
tree3a4056e758044961bc5a55846c8729bd50083f33
parent5bae60102c48364e9ca0966bdfeb489101410dca (diff)
parent3be64a72047b15ba6eb4a9a6a2f5ec84b278cc98 (diff)
downloaddesignate-955e2df067c5db59280d95e8ce7dbcc28473b9e4.tar.gz
Merge "Document the PowerDNS backend"
-rw-r--r--doc/source/backends.rst1
-rw-r--r--doc/source/backends/powerdns.rst89
2 files changed, 90 insertions, 0 deletions
diff --git a/doc/source/backends.rst b/doc/source/backends.rst
index 7ff34409..a4e8d5da 100644
--- a/doc/source/backends.rst
+++ b/doc/source/backends.rst
@@ -23,3 +23,4 @@ Contents:
:glob:
backends/bind9
+ backends/powerdns
diff --git a/doc/source/backends/powerdns.rst b/doc/source/backends/powerdns.rst
new file mode 100644
index 00000000..395c6868
--- /dev/null
+++ b/doc/source/backends/powerdns.rst
@@ -0,0 +1,89 @@
+..
+ Copyright 2013 Hewlett-Packard Development Company, L.P.
+
+ Licensed under the Apache License, Version 2.0 (the "License"); you may
+ not use this file except in compliance with the License. You may obtain
+ a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ License for the specific language governing permissions and limitations
+ under the License.
+
+
+PowerDNS Backend
+================
+
+Designate Configuration
+-----------------------
+
+=============================== ====================================== ==============================================================
+Parameter Default Note
+=============================== ====================================== ==============================================================
+domain_type NATIVE PowerDNS Domain Type
+also_notify [] List of additional IPs to send NOTIFYs to.
+database_connection sqlite:///$pystatepath/powerdns.sqlite Database connection string
+connection_debug 0 Verbosity of SQL debugging information. 0=None, 100=Everything
+connection_trace False Add python stack traces to SQL as comment strings
+idle_timeout 3600 timeout before idle sql connections are reaped
+max_retries 10 maximum db connection retries during startup.
+ (setting -1 implies an infinite retry count)
+retry_interval 10 interval between retries of opening a sql connection
+mysql_engine InnoDB MySQL engine to use
+sqlite_synchronous True If passed, use synchronous mode for sqlite
+=============================== ====================================== ==============================================================
+
+
+PowerDNS Configuration
+-------------------
+
+You need to configure PowerDNS to use the MySQL backend.
+
+1. First enable the MySQL backend:
+
+ launch = gmysql
+
+2. Configure the MySQL database settings::
+
+ gmysql-host=<host>
+ gmysql-port=
+ gmysql-dbname=<dbname>
+ gmysql-user=<username>
+ gmysql-password=<password>
+ gmysql-dnssec=yes
+ #gmysql-socket=<socket path>
+
+.. note::
+ PowerDNS can connect via socket or host/port.
+
+3. Configure the options for designate-central - specifaclly "database_connection" to point to your MySQL database::
+
+ [backend:powerdns]
+ database_connection = mysql://<username>:<password>@<host>:<port>/<dbname>
+
+4. Setup the database schema.
+
+::
+
+ $ designate-manage powerdns database-init
+ $ designate-manage powerdns database-sync
+
+5. Restart PowerDNS and it should be ready to serve queries using the MySQL database as the backing store.
+
+
+PowerDNS deployment as hidden Master
+------------------------------------
+
+One deployment scenario can be that the PowerDNS backend will be used as a "hidden" Master DNS for other DNS servers to consume via AXFR.
+
+Say you have 10.0.0.1 and 10.0.0.2 as slaves then configure the backend as follows in addition to other options::
+
+ [backend:powernds]
+ domain_type = MASTER
+ also_notify = 10.0.0.1,10.0.0.2
+
+.. note::
+ This should mostly be used in connection with another backend acting as slave. \ No newline at end of file