![]() The above takes about 10 minutes to setup. My DD-WRT router now auto updates Cloudflare whenever the WAN IP is changed. I setup a cron job to run cloudflare-ddns.sh every 5 minutes to check for IP changes. Type: CNAME | Name: www | Value: “yourdomain.xyz” Type: CNAME | Name: “yourdomain.xyz” | Value: dynamic.”yourdomain.xyz” Type: A | Name: dynamic | Value: “your WAN IP” *** ![]() In terms of the Cloudflare side of things, I setup as per this guide for just the Cloudflare domain records:Īt Cloudflare you must set the following records: I stored both scripts in /jffs making them executable. H "X-Auth-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ I had to trim the script a little to make it work. Once you have your Cloudflare account setup the info required is easy to locate:Ī-record ID for your domain (this is obtained by running the cloudflare-dns-id.sh script) Make sure you create the DNS entry for the domain name you want to update on CloudFlare the DIUP action parameter will only update the IP for an entry that already exists. Instead of using HTTP basic auth I just use a random key. $curl = "$hostname
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |