Fog::DNSMadeEasy
API Version
This library currently uses the DNSMadeEasy API v2
and it is fully compatible with the legacy implementation bundled with the fog
gem.
In other words, this is a drop-in replacement. Please note that the dnsmadeeasy
provider
will eventually be removed from the fog
gem in favor of this fog-specific module.
Installation
Add this line to your application's Gemfile:
gem 'fog-dnsmadeeasy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fog-dnsmadeeasy
Usage
Initialize a Fog::DNS
object using the DNSMadeEasy provider.
dns = Fog::DNS.new({
provider: "DNSMadeEasy",
dnsmadeeasy_api_key: "YOUR_API_V2_KEY",
dnsmadeeasy_secret_key: "YOUR_API_V2_SECRET_KEY"
})
This can then be used like other Fog DNS providers.
zone = dns.zones.create(
domain: "example.com
)
record = zone.records.create(
name: "example.com,
value: "1.2.3.4,
type: "A"
)
The following configurations are supported:
dns = Fog::DNS.new({
host: "api.dnsmadeeasy.com",
port: 443
scheme: 'https'
connection_options: {} # excon connection options
# API V2 authentication
dnsmadeeasy_api_key: "...",
dnsmadeeasy_secret_key: "...",
})
Contributing
- Fork it ( https://github.com/fog/fog-dnsmadeeasy/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request