2017 © Pedro Peláez
 

symfony-bundle powerdnsbundle

This bundle provides (yet another) api for the PowerDns DNS server. It allows the creation and modification of zones and records in the server.

image

syseleven/powerdnsbundle

This bundle provides (yet another) api for the PowerDns DNS server. It allows the creation and modification of zones and records in the server.

  • Tuesday, November 17, 2015
  • by markusseifert
  • Repository
  • 11 Watchers
  • 2 Stars
  • 39 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PowerDnsBundle

Build Status, (*1)

This Bundle provides an ReST API for the PowerDNS server written in PHP and integrated in the Symfony framework. It includes methods for creating and maintaining zone and domain records., (*2)

Installation

To install you need to include this bundle in your composer.json:, (*3)

    require: {
         ....
         "syseleven/powerdnsbundle": "dev-master"
    }

Then run `php composer.phar update and activate the Bundle in your kernel and adapt your configuration., (*4)

    $bundles = array(
        ...
        new SysEleven\PowerDnsBundle\SysElevenPowerDnsBundle(),
    );
````
You also need to register JmsSerializer and the FosRestBundle

```php
    $bundles = array(
        ...
        new FOS\RestBundle\FOSRestBundle(),
        new JMS\SerializerBundle\JMSSerializerBundle($this),
    );
````

The bundle makes some changes to the database structure of PowerDNS but they won't affect the default behaviour.

```sh

php app/console doctrine:schema:update --dump-sql -em=<your_entity_manager>

will dump the changes to your current schema, please review them and adapt to your needs., (*5)

Configuration

There is not really much configuration for the bundle so far. You can set the entity manager to use with:, (*6)


sys_eleven_power_dns: entity_manager: default

Apart from setting the entity manager, you can also specify default values for new SOA records., (*7)


sys_eleven_power_dns: entity_manager: default soa_defaults: primary: ns.domain.com hostmaster: admin@domain.com default_ttl: 3600

Then adapt your routing to load the routes:, (*8)


syseleven_power_dns: resource: "@SysElevenPowerDnsBundle/Resources/config/routing.yml" prefix: /

Third Party Bundles

The bundle uses the NelmioApiDocBundle to expose the documentation of the route parameters through its interface if you want to use this feature you have to activate and configure the Bundle. Please refer to the bundles homepage for more information. Integration with the FosRestBundle, the bundle uses the View components of the FosRestBundle, if you have the FosRestBundle in use please check your configuration., (*9)

API Documentation

You can find a documentation of the resources and its parameter here., (*10)

The Versions