1. Go to this page and download the library: Download nicokaiser/dyndns 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/ */
nicokaiser / dyndns example snippets
ns = new Dyndns\Server();
// Configuration
$dyndns
->setConfig('hostsFile', __DIR__ . '/../conf/dyndns.hosts') // hosts database
->setConfig('userFile', __DIR__ . '/../conf/dyndns.user') // user database
->setConfig('debug', true) // enable debugging
->setConfig('debugFile', '/tmp/dyndns.log') // debug file
->setConfig('bind.keyfile', __DIR__ . '/../conf/dyn.example.com.key') // secret key for BIND nsupdate ("<keyname>:<secret>")
->setConfig('bind.server', 'localhost') // address of the BIND server
->setConfig('bind.zone', 'dyndns.example.com') // BIND zone for the updates
->setConfig('bind.ttl', '300') // TTL for DNS entries
;
$dyndns->init();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.