PDNS-Console provides a CLI to manage PowerDNS application and improved it by adding a powerfull DNS zone versionning. Issue tracking: https://redmine.deblan.org/client/projects/deblan-pdns-console
Go to file
2015-02-23 21:45:19 +01:00
app Chmod 2015-02-23 01:01:29 +01:00
src/Deblan help 2015-02-23 21:45:19 +01:00
.gitignore Ignoring vim files and composer.lock 2015-02-17 01:57:43 +01:00
composer.json composer and about command 2015-02-22 22:31:05 +01:00
LICENSE Initial commit 2015-02-16 23:18:06 +01:00
propel.yaml Removing auto generated comments 2015-02-18 14:17:17 +01:00
README.md help 2015-02-23 21:45:19 +01:00

pdns-console

PDNS-Console provided a CLI to manage PowerDNS application and improved it by adding a powerfull DNS zone versionning.

Commands

Available commands

Helpers

 about                   Show information about pdns-console
 help                    Displays help for a command
 list                    Lists commands

Manage domains

 domain:add              Add a domain
 domain:list             List domains
 domain:remove           Remove a domain

Manage zones

 zone:add                Add a zone
 zone:assign             Assign a zone to a domain.
 zone:list               List DNS zones
 zone:push               Push activated zones to PowerDNS tables
 zone:record:add         Add a zone record
 zone:record:remove      Remove a zone record
 zone:remove             Remove a zone
 zone:unassign           Unassign the domain zone
 zone:version:active     Active a zone version
 zone:version:add        Add a zone version
 zone:version:copy       Copy a zone version
 zone:version:remove     Remove an unactivated zone version
 zone:version:unactive   Active a zone version

Installation

Requirements

  • PHP >= 5.4
  • PDO with module for database connection
  • Instance of PDNS (Powerdns) >= 3.1 with MySQL/PostgreSQL/SQLite backend

Downloading sources

cd /usr/local/src/
git clone https://github.com/simmstein/pdns-console.git
cd pdns-console

Dependances

curl -sS https://getcomposer.org/installer | php
./composer.phar install

Database

Edit propel.yaml

  • dsn: "mysql:host=localhost;dbname=pdns"

    • Change localhost with the database server name
    • Change "pdns" with the database name
  • Change user and password values with your pdsn database login

Run ./app/propel/console config:convert

Models

The sources does not contain all application models. You have to generate them:

Run ./app/propel/console --recursive model:build

Database updates

pdns-console needs to update pdns original tables and uses 3 more.

./app/propel/console --recursive migration:diff
./app/propel/console --recursive migration:migrate

To access the console without using the full path of app/console, make a symlink:

ln -s $PWD/app/console /usr/local/bin/pdns-console