Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlomikus/php-ddns
A simple console application that updates cloudflare DNS record
https://github.com/karlomikus/php-ddns
cloudflare ddns php
Last synced: 4 days ago
JSON representation
A simple console application that updates cloudflare DNS record
- Host: GitHub
- URL: https://github.com/karlomikus/php-ddns
- Owner: karlomikus
- Created: 2022-09-25T16:07:14.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T08:50:50.000Z (6 months ago)
- Last Synced: 2024-11-14T06:32:15.780Z (2 months ago)
- Topics: cloudflare, ddns, php
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PHP DDNS
A simple console application that updates cloudflare A record with a new external IP.
Currently used as a simple "ddns" solution for VPN access.
## Setup
1. Install dependencies
``` shell
$ composer install
```2. Configure environment with .env
``` shell
$ cp .env.example .env
$ vim .env
```You're going to need Cloudflare API key, API email and Zone ID
3. Run the command
``` shell
$ php ddns update
```4. Setup cron job
```shell
*/15 * * * * php /path/to/project/src/boostrap.php ddns:update-a-record
```