Automated IP updater for servers with dynamic IPs. Script checks if IP has been changed and will perform update to dynamic DNS provider. Works out of the box with dy.fi DNS.
- Compile
main.gofile withgo build main.gocommand. - Create
config.jsonfile in the same folder.
Structure for config:
{
"username": "Username for dynamic DNS service.",
"password": "Password for dynamic DNS service.",
"wgetUrl": ["Urls in list which to be updated with the changed IP."],
"checkIpUrl": "Url which returns the current ip."
}Example provider for current ip https://www.ipify.org.
- Run compiled code.