You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing zone files (bind format) using zone.import, we call Record.fromZoneRecord_ on each line. However, when you have multiple of the same record that should in be a single result set (i.e. MX records), it actually creates a record set per line, which doesn't result in the correct zone being created.
Environment details
Steps to reproduce
When importing zone files (bind format) using
zone.import
, we callRecord.fromZoneRecord_
on each line. However, when you have multiple of the same record that should in be a single result set (i.e. MX records), it actually creates a record set per line, which doesn't result in the correct zone being created.The
resourceRecordSets
rrdatas
should be a list (https://cloud.google.com/dns/api/v1/resourceRecordSets#resource) of all the records, not multiple resourceRecordSets. The result is only the last MX record is imported.This would probably also cause problems if for example you have multiple TXT records, or multiple A records.
The text was updated successfully, but these errors were encountered: