使用 CPanel API 从本地域中删除域


Delete a domain from localdomains with CPanel API?

我们使用CPanel服务器,我用CPanel API开发了一个DNS编辑器:http://docs1.cpanel.net/twiki/bin/view/SoftwareDevelopmentKit/XmlApi

现在我有一个问题,当更改安装在 CPanel 帐户上的域的 MX 记录时,该域仍将列在/etc/localdomain 中。

有没有办法使用 cpanel API 删除该条目?

感谢您的帮助!

域将根据 MX 记录添加到/etc/localdomains (local) 或/etc/remotedomains (remote),每当修改 MX 条目时,都会根据需要进行更新。如果您设置了远程 MX 记录,则应自动从/etc/localdomains 中删除域名。