Skip to content
A dynamic DNS client for Digital Ocean
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
main.go

README.md

Build Status Coverage Status

doddns

Purpose:

The purpose of this application is to dynamically update DNS A records, specifically subdomains, that are managed by Digital Ocean. The use case for this is if you have something running at home or somewhere where the IP changes often but you want to be able to hit it via DNS. Basically something like DynDNS or Afraid.org but instead using Digital Ocean.

Prerequisites:

  • The domasubdomain) mxist in the Digital Ocean DNS system
  • You need to be able to make outbound HTTP/HTTPS requests

Usage:

go get github.com/esell/doddns

./doddns -s SUBDOMAIN -d DOMAIN.COM -k DO_API_KEY

At this point you could set the app to run via cron or whatever.

Gotchas:

  • Currently the default TTL that Digital Ocean gives you is 1800. Of course this is less than ideal for dynamic updates. The current Digital Ocean API does not provide a way to set the TTL on update or addition so you will need to manually set this in their portal. The nice thing is that you only have to set it once, future updates will not reset the TTL you have defined.
  • The update is dependent on DNS cache. If a remote client doesn't honor your TTL you are SOL.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.