1. Go to this page and download the library: Download dnic/qdns library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
dnic / qdns example snippets
s\ApiClient;
$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->zone()->listZones();
s\ApiClient;
$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->zone()->listZone('example.com');
s\ApiClient;
$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->record()->addRecord('example.com', 'test.example.com', 'A', 60,'192.168.178.9');
s\ApiClient;
$client = new ApiClient('your_powerdns_apikey','your_powerdnsurl_with_port');
echo $client->record()->deleteRecord('example.com', 'test.example.com', 'A');
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.