Skip to content
SynKnot utility for DNS and PTR synchronization with Knot DNS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
log
src/SynKnot
tests
vendor
.gitignore
README.md
composer.json
composer.phar
config.ini.dist
synknot.php

README.md

SynKnot

SynKnot utility for DNS and PTR synchronization with Knot DNS server

Prerequisites

  • own Knot DNS server (https://www.knot-dns.cz/)
  • own database of DNS and PTR records (or other kind of storage)
  • PHP-cli and GIT support on the DNS server

How to deploy SynKnot

  • ssh to your DNS server
  • cd /opt/
  • git clone https://github.com/besthostingcz/synknot.git synknot
  • cd /opt/synknot/
  • cp ./config.ini.dist ./config.ini
  • change your preferences in the config.ini file
  • cd ./src/SynKnot/Application/Adapters/
  • cp ./TestDNSRecordAdapter.php ./MyOwnDNSRecordAdapter.php
  • cp ./TestPTRAdapter.php ./MyOwnPTRAdapter.php
  • edit the adapters, that they can return lists of DNS / PTR
  • link your new adapters at config.ini
  • cd /opt/synknot/
  • allow exec function in php.ini
  • php -i | grep ini
  • vim /path/to/your/php.ini
  • remove exec function from disable_function property
  • run SynKnot synchronization: php ./dns-sync.php dns-sync:reload

For more commands, you can use standard Symfony console php /opt/synknot/dns-sync.php

More infomation about this project could be found at http://synknot.cz/ or directly on the page with the tutorial. Don't hesitate to ask :)

You can’t perform that action at this time.