Shell script for updating current IP using yandex.connect
bash
curl
jq
- Clone or copy yandex-connect-dns.sh
git clone https://github.com/DiDimus/yandex-connect-dns
- Make yandex-connect-dns.sh to execute.
chmod +x yandex-connect-dns.sh
- Create settings.ini with the following contents:
example.com:123456789ABCDEF0000000000000000000000000000000000000
where example.com - your domain, 123456789ABC... - API token. Get it here - https://pddimp.yandex.ru/api2/admin/get_token
- Launch script or create a cron job like this
0,15,30,45 * * * * bash yandex-connect-dns.sh
Now, you are done.