如何通过域Connect协议(domainConnect.org)添加使用规范名称的子域名
我无法通过 domainconnect.org API 添加具有规范名称的子域。 我正在使用 ext-domain-connect 项目。所有现有的示例都是关于添加 A 记录的。
如何通过域连接协议添加具有规范名称的子域?
从 ext-domain-connect 添加 A 记录的示例
try {
$applyUrl = (new TemplateService())->getTemplateSyncUrl(
'www.example-domain.com',
'exampleservice.domainconnect.org',
'template1',
[
'IP' => '132.148.25.185',
'RANDOMTEXT' => 'shm:1531371203:Hello world sync',
],
$privateKey,
$keyId
);
print_r($applyUrl);
} catch (DomainConnectException $e) {
echo (sprintf('An error has occurred: %s', $e->getMessage()));
}
I can't add subdomain with canonical name through domainconnect.org API.
I'm using ext-domain-connect project. The all exist examples are about adding A records.
How I can add subdomain with canonical name through domain connect protocol?
Example of adding A records from ext-domain-connect
try {
$applyUrl = (new TemplateService())->getTemplateSyncUrl(
'www.example-domain.com',
'exampleservice.domainconnect.org',
'template1',
[
'IP' => '132.148.25.185',
'RANDOMTEXT' => 'shm:1531371203:Hello world sync',
],
$privateKey,
$keyId
);
print_r($applyUrl);
} catch (DomainConnectException $e) {
echo (sprintf('An error has occurred: %s', $e->getMessage()));
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论