Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jawish/cloudflare_cname_updater

Resolves the given CNAME into the associated A/AAAA records and syncs Cloudflare DNS with the records via Cloudflare API.
https://github.com/jawish/cloudflare_cname_updater

Last synced: 22 days ago
JSON representation

Resolves the given CNAME into the associated A/AAAA records and syncs Cloudflare DNS with the records via Cloudflare API.

Awesome Lists containing this project

README

        

Resolves the given CNAME into the associated A/AAAA records and syncs Cloudflare DNS with the records via Cloudflare API.

Used when managing DNS in Cloudflare with a domain that has dynamic CNAMEs that change occassionally. This was originally written for use on a domain with web/app servers running behind Amazon AWS Elastic Load Balancers.

Instructions
============
1. Clone/download the script and sample config script somewhere onto a server. The server should be using a nameserver that has the most up-to-date records.
2. Copy the sample config file and fill in the details.
3. Run the script manually or setup a cron job to run the script every x minutes.

`php cf_cname_updater.php sample_config`

That's all!

License
=======
MIT License