deefour / cfddns
CloudFlare 动态 DNS 更新器
0.3.2
2015-05-24 23:45 UTC
Requires
- guzzle/guzzle: ~3.9.1
- kevinlebrun/colors.php: dev-master
Requires (Dev)
- mockery/mockery: ~0.9.0
- phpunit/phpunit: ~4.1.0
- symfony/finder: ~2.5.2
- symfony/process: ~2.5.2
README
这是一个简单的 CloudFlare.com API 动态 DNS 更新器,用 PHP 编写。需要 PHP 5.5。
安装
cfddns 的每个版本都包含一个 cfddns.phar
文件,其中包含运行此工具所需的所有文件。您可以在 https://github.com/deefour/cfddns/releases 找到版本列表和可下载的内容。
下载 cfddns.phar
并将其放置在您的 $PATH
目录中。
配置
cfddns 读取 INI 配置文件以对 CloudFlare 进行适当的 API 调用。注释模板可以在以下位置找到:以下位置和 https://github.com/deefour/cfddns/blob/master/.cfddns.template
; Your CloudFlare API key apikey=your_api_key_here ; The email address associated with your CloudFlare account email=jason@deefour.me ; The full domain you wish to set the A record for. ; ; The TLD should already exist within your cloudflare account. It does not matter ; if an A record for the subdomain already exists hostname=home.deefour.me
执行
更新器只有定期运行时才有用。这可以通过为 cfddns
创建 cron 作业来实现。
*\2 * * * * /usr/bin/env php /usr/local/bin/cfddns.phar -c ~/.cfddns
变更日志
0.3.2 - 2014 年 5 月 25 日
- 代码格式化
0.3.1 - 2014 年 7 月 20 日
- 修复 PHP 通知
- 升级依赖项
许可证
版权所有 (c) 2014 Jason Daly (deefour)。在 MIT 许可证 下发布