Skip to content

Instantly share code, notes, and snippets.

View georgedrummond's full-sized avatar
:fishsticks:

George Drummond georgedrummond

:fishsticks:
  • GitHub Staff
  • Philadelphia
View GitHub Profile
@jaderobbins
jaderobbins / dyn-dns-dreamhost.rb
Created September 4, 2009 16:50
A ruby script that acts like DynDns for your own domain (via DreamHost)
require 'open-uri'
require 'rubygems'
require 'json'
# Change these settings
hostname = 'home.hostname.com' # the hostname you use to connect to home ip
apikey = 'your-dreamhost-api-key' # a dreamhost api key that has access to all dns functions
storedIP = ''
print 'Getting current external ip: '