Using the DNS API I am trying to delete the NS
and SOA
record but I am getting this message:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalidZoneApex",
"message": "The resource record set 'entity.change.deletions[0]' is invalid because a zone must contain exactly one resource record set of type 'SOA' at the apex."
},
{
"domain": "global",
"reason": "invalidZoneApex",
"message": "The resource record set 'entity.change.deletions[1]' is invalid because a zone must contain exactly one resource record set of type 'NS' at the apex."
}
],
"code": 400,
"message": "The resource record set 'entity.change.deletions[0]' is invalid because a zone must contain exactly one resource record set of type 'SOA' at the apex."
}
}
Via the google web console, I can update/modify the records and this helps me to add my custom NS
and SOA
so that I can use my own vanity name.
Besides that if I want to add a new NS
or SOA
I get an alreadyexists error.
How could totally manipulate the zone via the DNS API?