应用 DNS 区域更改 Plesk API

Apply DNS Zone changes Plesk API

我有一个与 Plesk 相关的问题 API。

我设法创建子域,通过 PHP 编辑 DNS 区域,但是当我进入 Plesk 时,我收到以下错误消息,指向受 DNS 更改影响的子域:

Warning: The DNS zone was modified. If you would like to apply DNS template changes to this zone, either click the 'Apply DNS Template Changes' button on this page or choose the 'Apply the changes to all zones' option in Server Administration Panel > Tools & Settings > DNS Template Settings > Apply DNS Template Changes.

现在,我通读了 API 文档并找到了执行此操作的方法,但我不确定 'used-ip' 标签是什么。是我的 Plesk 主机的 IP 吗?

这是我在文档中找到的内容。

<packet>
<dns>
<sync-with-template>
<filter>
  <used-ip>123.123.123.123</used-ip>   
</filter>
</sync-with-template>
</dns>
</packet>

看到 'used-ip' 值了吗?这是什么?

谢谢, 克里斯蒂安

好的,所以我设法找到了答案。 used-ip 值是子域主机的值。

来自文档:它指定 DNS 区域的 IP 地址。