Cloudflare-sync-dns: Difference between revisions
 (Created page with "File:CloudflareSyncDns.png  This tooling is essential to every hour of my streamlined development flow.  See the project README for more.  === [https://gitlab.com/moodboom/git-sync Gitlab] ===  === [https://github.com/moodboom/git-sync Github] ===  === [https://www.npmjs.com/package/git-sync Npm] ===")  | 
				No edit summary  | 
				||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
[[File:CloudflareSyncDns.png]]  | [[File:CloudflareSyncDns.png]]  | ||
Run this in cron to regularly sync any IP change into your Cloudflare DNS records.  | |||
=== [https://gitlab.com/moodboom/  | === [https://gitlab.com/moodboom/cloudflare-sync-dns Gitlab] ===  | ||
=== [https://github.com/moodboom/  | === [https://github.com/moodboom/cloudflare-sync-dns Github] ===  | ||
=== [https://www.npmjs.com/package/  | === [https://www.npmjs.com/package/cloudflare-sync-dns Npm] ===  | ||
=== Node in Bash ===  | |||
NOTE that you can use this nvm-based bash script to run npm commands from cron:  | |||
 #!/bin/bash  | |||
 export NVM_DIR="/home/myhome/.nvm"  | |||
 [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"  # This loads nvm  | |||
 cloudflare-sync-dns /path/to/settings.json  | |||
Latest revision as of 23:16, 14 January 2025
Run this in cron to regularly sync any IP change into your Cloudflare DNS records.
Gitlab
Github
Npm
Node in Bash
NOTE that you can use this nvm-based bash script to run npm commands from cron:
#!/bin/bash export NVM_DIR="/home/myhome/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm cloudflare-sync-dns /path/to/settings.json
