Internet Performance Delivered right to your inbox

Integration Update: DynECT Managed DNS Now In A Ruby Fog

For all those Ruby users like me out there, controlling your DynECT Managed DNS just got even easier. Dyn is now a native part of the Fog gem which unifies a large number of cloud services into a simple to use interface. See how you set everything up:

The DynECT addition simply extends the current fog DNS capabilities and allows you to create an A record as succinctly as:

require 'rubygems'
require 'fog'

@dynect = Fog::DNS.new(:provider => "dynect", :dynect_customer => "customername", :dynect_username => "username", :dynect_password => "password")

@zone = @dynect.zones.get("myzone.net")

# create A record
@record = @zone.records.create(
:rdata =>{'address' => '1.2.3.5'},
:name => 'www.myzone.net',
:type => 'A'
)

For those new to Ruby, all you need to do is a Ruby installand then run:

sudo gem install fog

This will put the latest version of the fog gem on your system! Yep, it’s that simple!

I wish I could say I played a big part in this (unless you consider sending documentation to someone a big part), but all the kudos go to Wesley Beary — the creator and maintainer of the Fog.gem. You can see all of the work on Fog he has done at his open source github account where there are some great examples and of course, the clean easy-to-read ruby code for it all.

So if you were holding off on automating your enterprise level DNS record maintenance and waiting for it to become ridiculously simple to do, the day you have been waiting for has arrived!


Share Now

Whois: Kevin Gray

Kevin Gray is a employee at Oracle Dyn Global Business Unit, a pioneer in managed DNS and a leader in cloud-based infrastructure that connects users with digital content and experiences across a global internet.