diff --git a/lib/fog/dnsimple/models/dns/record.rb b/lib/fog/dnsimple/models/dns/record.rb index 5f474d516..ddb23473b 100644 --- a/lib/fog/dnsimple/models/dns/record.rb +++ b/lib/fog/dnsimple/models/dns/record.rb @@ -41,7 +41,7 @@ module Fog # decide whether its a new record or update of an existing if id.nil? - data = service.create_record(zone.domain, name, type, value, options) + data = service.create_record(zone.id, name, type, value, options) else options[:name] = name if name options[:content] = value if value