diff --git a/lib/fog/zerigo/models/dns/records.rb b/lib/fog/zerigo/models/dns/records.rb index d789129762..a5f8e58004 100644 --- a/lib/fog/zerigo/models/dns/records.rb +++ b/lib/fog/zerigo/models/dns/records.rb @@ -34,6 +34,11 @@ def new(attributes = {}) super({ :zone => zone }.merge!(attributes)) end + def find(fqdn) + hosts = connection.find_hosts(fqdn, zone.id).body['hosts'] + hosts.collect { |host| new(host) } + end + end end