ruby_route_53 icon indicating copy to clipboard operation
ruby_route_53 copied to clipboard

Impossible to update a zone apex A record to a regular A record

Open davidljung opened this issue 13 years ago • 0 comments

Given a DNSRecord object that represents a zone apex virtual A record, it isn't possible to update it to be a regular A record (with IP address) using update:

record.update(nil,nil,nil,ip_address,nil,nil)

causes the error below, because passing nil for the zone_apez param of update() indicates no-change. There seems to be no way to set it to nil (if that is the appropriate value for non-apex virtual A records). ERROR: Amazon returned an error for the request. ERROR: RAW_XML: <ErrorResponse xmlns="https://route53.amazonaws.com/doc/2011-05-05/"><Error><Type>Sender</Type><Code>InvalidChangeBatch</Code><Message>Tried to create an alias that targets resortsvacation.com., type A in zone Z3DZXE0Q79N41H, but that target was not found</Message></Error><RequestId>edc17977-1d34-11e1-9388-b50d1a7693b8</RequestId></ErrorResponse> ERROR: InvalidChangeBatch: Tried to create an alias that targets resortsvacation.com., type A in zone Z3DZXE0Q79N41H, but that target was not found . What now? You may have tried to delete a NS or SOA record. This error is safe to ignore if you're just trying to delete all records as part of a zone prior to deleting the zone. Or you may have tried to create a record that already exists. Otherwise please file a bug by sending a detailed bug ...

davidljung avatar Dec 02 '11 22:12 davidljung