The DNSimple API client for Ruby.
Latest commit 94e5f42 Jul 23, 2016 @jacegu jacegu committed on GitHub Swap template_id and domain_id arguments (#126)

DNSimple Ruby Client

A Ruby client for the DNSimple API v2.

Build Status Coverage Status

DNSimple provides DNS hosting and domain registration that is simple and friendly. We provide a full API and an easy-to-use web interface so you can get your domain registered and set up with a minimal amount of effort.

⚠️ Beta Warning

This branch targets the development of the API client for the DNSimple API v2. If you are looking for the stable version of the client for DNSimple API v1 then use the master-v1 branch.

This library is currently in beta version, the methods and the implementation should be considered a work-in-progress. Changes in the method naming, method signatures, public or internal APIs may happen during the beta period.


You can install the gem manually:

$ gem install dnsimple

Or use Bundler and define it as a dependency in your Gemfile:

gem 'dnsimple', '~> 3.0'


This library is a Ruby client you can use to interact with the DNSimple API v2. Here are some examples.

require 'dnsimple'

client = "a1b2c3")

# Fetch your details
response = client.identity.whoami   # execute the call                       # extract the relevant data from the response or         # execute the call and get the data in one line

# Define an account ID.
account_id = 1010

# You can also fetch it from the whoami response
# as long as you authenticate with an Account access token
whoami =
account_id =

# List your domains
puts                      # => domains from the account 1234, first page
puts, query: { page: 3 }).data  # => domains from the account 1234, third page
puts                       # => all domains from the account 1234 (use carefully)

# Create a domain
response =, name: "")

# Get a domain
response =, "")

For the full library documentation visit


Copyright (c) 2010-2016 Aetrion LLC. This is Free Software distributed under the MIT license.