Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 698 Bytes

README.md

File metadata and controls

33 lines (25 loc) · 698 Bytes

yandex-connect-dns

Shell script for updating current IP using yandex.connect

Requirements

bash

curl

jq

How to use?

  1. Clone or copy yandex-connect-dns.sh
git clone https://github.com/DiDimus/yandex-connect-dns
  1. Make yandex-connect-dns.sh to execute.
chmod +x yandex-connect-dns.sh
  1. 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

  1. Launch script or create a cron job like this
0,15,30,45 * * * * bash yandex-connect-dns.sh

Now, you are done.