2017 © Pedro Peláez
 

library power-ddns

DynDNS compatible updater for powerdns servers

image

mikethomson/power-ddns

DynDNS compatible updater for powerdns servers

  • Monday, February 12, 2018
  • by MikeThomson
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PowerDDNS

PowerDDNS is a package designed to make it easy to provide a DynDNS API compatible endpoint for your own DNS servers. While the name implies that it is for PowerDNS, there's no reason you couldn't implement a backend that would work with any other DNS server., (*1)

I'll happily take pull requests from people who implement more auth / backend interfaces., (*2)

Installing

Installation is easy with composer, just run php composer.phar require mikethomson/power-ddns dev-master In the resources folder you will find the SQL schema that is added on to the PowerDNS database to add users and permissions for PowerDDNS. The DbBackend uses MD5 hashed passwords by default. The permissions table is a simple join table with the id of the user and the id of the record they should be allowed to update., (*3)

Example

All that's needed to implement an endpoint is an index.php like the following:, (*4)

<?php
require 'vendor/autoload.php';
$pdo = \PowerDDNS\Helper\PDOFactory::get(array(
    'dsn' => 'mysql:host=localhost;dbname=powerdns',
    'username' => 'root'
));

$auth = new \PowerDDNS\Auth\DbAuth($pdo);
$backend = new \PowerDDNS\Backend\DbBackend($pdo);

$pddns = new \PowerDDNS\PowerDDNS($auth, $backend);
$pddns->endpoint();

TODO

  • Implement a BIND backend
  • Fix all the todos in the code
  • Finish implementing tests
  • Implement the full protocol, not just what's needed

Credit

Credit to nicokaiser for a good reference while building this, (*5)

The Versions

12/02 2018

dev-feature/upsource-test

dev-feature/upsource-test

DynDNS compatible updater for powerdns servers

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

by Mike Thomson

17/04 2014

dev-master

9999999-dev

DynDNS compatible updater for powerdns servers

  Sources   Download

The Requires

  • php >=5.3.0

 

The Development Requires

by Mike Thomson