Skip to content

DNS Record update is not working #16

@devilankur18

Description

@devilankur18

I already have a dns record, now when I am trying to change the value its not working.

data = {
  type: 'CNAME',
  name: "sub1",
  content: xxx1.example.com,
  proxied: false
}
rec = zone.dns_record(dns_record_id)
rec.update(data).save

#<Cloudflair::DnsRecord:0x00005581eb660298 @zone_id="f123456bxxxxxa2ee661234567890123", @record_id="3232ada1342422424223333", @dirty_data={}>

I looked in to the code, it seems patchable_fields need to be defined for the api dns record related class.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions