diff --git a/lib/fog/dnsimple/dns.rb b/lib/fog/dnsimple/dns.rb index 955ba88c5..6d5e28ed7 100644 --- a/lib/fog/dnsimple/dns.rb +++ b/lib/fog/dnsimple/dns.rb @@ -67,7 +67,7 @@ module Fog options[:port] = uri.port options[:scheme] = uri.scheme end - @host = options[:host] || "dnsimple.com" + @host = options[:host] || "api.dnsimple.com" @persistent = options[:persistent] || false @port = options[:port] || 443 @scheme = options[:scheme] || 'https' @@ -85,6 +85,9 @@ module Fog "Accept" => "application/json", "Content-Type" => "application/json" }) + version = params.delete(:version) || 'v1' + params[:path] = "/#{version}#{params[:path]}" + response = @connection.request(params) unless response.body.empty?