Register w/ Cloudflare DNS

view gist on github

May 28, 2018

Dynamic DNS w/ Cloudflare + PowerShell + Windows Scheduled Tasks

Copy registerCloudflare.ps1 to C:\tools\registerCloudflare.ps1

Scheduled Task

Pick a Trigger that makes sense for you. Some examples:

  • At computer startup
  • Every 6 hours
  • When connecting to the network

Use the following for Actions

Program/script: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
-Command "& 'C:\tools\registerCloudflare.ps1' -Email '[email protected]' -ApiKey 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -Domain '' -Name 'myfriendlyname'"