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 = => "dynect", :dynect_customer => "customername", :dynect_username => "username", :dynect_password => "password")

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

# create A record
@record = @zone.records.create(
:rdata =>{'address' => ''},
:name => '',
: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.

To current Dyn Customers and visitors considering our Dynamic DNS product: Oracle acquired Dyn and its subsidiaries in November 2016. After June 29th, 2020, visitors to will be redirected here where you can still access your current Dyn service and purchase or start a trial of Dynamic DNS. Support for your service will continue to be available at its current site here. Sincerely, Oracle Dyn