Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

DNS Record.fromZoneRecord_ doesn't handle multiple records correctly (MX) #8

Closed
stephenplusplus opened this issue Oct 24, 2017 · 0 comments
Assignees
Labels
api: dns Issues related to the googleapis/nodejs-dns API. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@stephenplusplus
Copy link
Contributor

From @timwsuqld on August 22, 2017 4:21

Environment details

  • OS: Linux
  • Node.js version: 4.2.6
  • npm version: 3.5.2
  • google-cloud-node version: 0.6.2

Steps to reproduce

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.

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.

Copied from original issue: googleapis/google-cloud-node#2552

@lukesneeringer lukesneeringer added the priority: p2 Moderately-important priority. Fix may not be included in next release. label Nov 10, 2017
@stephenplusplus stephenplusplus added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Feb 20, 2018
@stephenplusplus stephenplusplus self-assigned this Mar 13, 2018
@ghost ghost removed the priority: p2 Moderately-important priority. Fix may not be included in next release. label Mar 15, 2018
@google-cloud-label-sync google-cloud-label-sync bot added the api: dns Issues related to the googleapis/nodejs-dns API. label Jan 31, 2020
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: dns Issues related to the googleapis/nodejs-dns API. 🚨 This issue needs some love. triage me I really want to be triaged. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

3 participants