A very basic shell script updater for dynamic DNS services provided by http://pdd.yandex.ru.
- Get token at Token management page. See Yandex API manual for details.
- Edit ya.ddns.update.sh in a text editor, and modify the hostname, and token fields.
- If desired, set
$use_ifconfig='yes'
and$iface='eth0'
. Otherwise, the script will use http://checkip.dns.he.net to determine your public IP address. - If necessary,
chmod +x ya.ddns.update.sh
. - Run ya.ddns.update.sh.
- Use system's cron to schedule the updates. Or LaunchDaemon. Whatever floats your boat.
- Works both for primary domain (example.com) and subdomains (foo.example.com, foo.bar.example.com).
- DNS "A" record for hostname must exist before you run this script.
- yapdate.sh is a simplier script, but won't work behind router.
License: WTFPL or MIT.
Warranty: None.
Enjoy!
Inspired by bennettp123's dns.ne.net-updater-mac