Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
/ dodyn Public archive

🧨 Dynamic DNS on DigitalOcean

License

Notifications You must be signed in to change notification settings

mishushakov/dodyn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

DoDyn

Simple One-Line shell script to update your DNS records with DigitalOcean API, that makes use of ipify.org API to retrieve your IP.

Dependencies

  • curl

Installation

  1. Connect your Domain to DigitalOcean DNS
  2. Set the DODYN_DOMAIN Environment Variable to your root Domain (not a subdomain!), example: ushakov.co
  3. Get a Personal Access token on API Page and set the DODYN_TOKEN Environment Variable
  4. Find out your Record ID (guide) and set the DODYN_RECORD Environment Variable
  5. Make sure the script is executable, if not chmod +x dodyn.sh
  6. Test the script manually, the output should be like this:
  7. Set up a cronjob to automatically update your record each 30 minutes (recommended amount of time) */30 * * * * dodyn.sh
  8. (When running at home) Make sure your ports are open

Thank you.

Releases

No releases published

Packages

No packages published

Languages