使用DNS API我试图删除NS
和SOA
记录,但我收到此消息:
{
"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."
}
}
通过谷歌网络控制台,我可以更新/修改记录,这有助于我添加我的自定义NS
,SOA
以便我可以使用自己的虚名。
除此之外,如果我想添加一个新的NS
或者SOA
我得到一个已经存在的错误。
如何通过 DNS API 完全操纵区域?