如何通过域Connect协议(domainConnect.org)添加使用规范名称的子域名

发布于 2025-01-18 00:23:31 字数 905 浏览 3 评论 0原文

我无法通过 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文