Yandex dDNS updater
Dynamic DNS client for pdd.yandex.ru (Linux & OS X)
Project maintained by populov
Hosted on GitHub Pages — Theme by mattgraham
DNS updater shell script for Linux & OS X
По-русски / In Russian
A very basic shell script updater for dynamic DNS services provided by http://pdd.yandex.ru.
Instructions:
- 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.
Notes
- 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!