Skip to content

Instantly share code, notes, and snippets.

@fu-sen
Last active January 3, 2021 12:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fu-sen/209e2d04f8a637df8a26048f9eeee60e to your computer and use it in GitHub Desktop.
Save fu-sen/209e2d04f8a637df8a26048f9eeee60e to your computer and use it in GitHub Desktop.
Use freedns.afraid.org Dynamic DNS on Windows 10 https://freedns.afraid.org/dynamic/

Windows 10 now includes cURL. (It should be "curl.exe", not "curl")
So you can easily implement freedns.afraid.org Dynamic DNS with a simple .bat file or task scheduler.

See https://freedns.afraid.org/dynamic/ and replace the "Direct URL" in your (sub) domain.
and you can change the update interval "3600". (Seconds)

Note: ERROR: Address ●.●.●.● has not changed. is working fine.

@echo off
setlocal
:loop
echo %DATE% %TIME%
@curl.exe -k https://freedns.afraid.org/dynamic/update.php?(Direct URL)
timeout /t 3600 /nobreak >nul
goto loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment