This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * Script used to update DNS records in Cloud Flare when server IP address changes. | |
| * My use case is to run this script on startup, when I spin up a new Digital Ocean VPS but | |
| * this could easily be used to update for dynamic DNS with a cronjob. | |
| * | |
| * Digital Ocean referral code: https://www.digitalocean.com/?refcode=3655e259ce29 | |
| * | |
| * Requires PHP cURL |