Skip to content

A dynamic DNS updater shell script for pdd.yandex.ru for Linux and OS X

License

Notifications You must be signed in to change notification settings

populov/yandex-ddns-sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yandex dDNS updater

Dynamic DNS client for pdd.yandex.ru (Linux & OS X)

По-русски / In Russian

A very basic shell script updater for dynamic DNS services provided by http://pdd.yandex.ru.

Instructions:

  1. Get token at Token management page. See Yandex API manual for details.
  2. Edit ya.ddns.update.sh in a text editor, and modify the hostname, and token fields.
  3. 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.
  4. If necessary, chmod +x ya.ddns.update.sh.
  5. Run ya.ddns.update.sh.
  6. 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!

Inspired by bennettp123's dns.ne.net-updater-mac

About

A dynamic DNS updater shell script for pdd.yandex.ru for Linux and OS X

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages