orehid/registrarapi

Managing DDNS for clouflare.

1.0.4 2020-10-29 07:34 UTC

This package is auto-updated.

Last update: 2025-06-29 01:52:21 UTC


README

This project is my sandbox for learning github.

  • simple API wrapper.
    This project support APIs for DDNS or DNSSEC setteing only.
    Cloudflare API
    value-domain API

  • All API responses can be logged.

  • PHP7 or higher is required.

  • curl.cainfo setting in php.ini required.

  • No other libraries are required.

  • Composer is not necessarily required.

  • Developed on Windows. It hasn't been tested on any other OS.

Install

  • composer require orehid/registrarapi

What CloudflareApiUpdateDdns.php does

  • Get the current global IP address.
  • If it has been changed, update the target DNS records.

CloudflareApiUpdateDdns.php usage

  • Setup the Cloudflont Account.

  • Get a API TOKEN with zone edit permission.

  • Copy src/CloudflareApiConfig.sample.php to src/CloudflareApiConfig.php

  • Edit src/CloudflareApiConfig.php to fit your environment.

  • Execute or cron, php CloudflareApiUpdateDdns.php

What ValuedomainApiSetDnssec.php does

  • Get current DNSSEC settings.
  • Update DNSSEC settings.

ValuedomainApiSetDnssec.php usage

NOTICE: The program does not work with the error "Digest is invalid".

  • Setup the Cloudflont Account.

  • Get a API KEY.

  • Get a DNSSEC infomation.

  • Copy src/ValuedomainApiConfig.sample.php to src/ValuedomainApiConfig.php

  • Edit src/ValuedomainApiConfig.php to fit your environment.

  • Execute php ValuedomainApiSetDnssec.php

License

The source code is licensed MIT.