Skip to content

增加二级域名的泛解析。 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
shenqihui opened this issue Jun 4, 2021 · 0 comments
Open

增加二级域名的泛解析。 #1

shenqihui opened this issue Jun 4, 2021 · 0 comments

Comments

@shenqihui
Copy link

假如我有个域名 xxx.com
然后目前这个脚本,调用 *.xxx.com 就成功。

加入,我需要调用 *.aaa.xxx.com ,那么就会失败。
详细调用的细节,其中 class Cns create 方法里面的 body

body = {
            'Action': 'RecordCreate',
            'domain': 'aaa.xxx.com',
            'subDomain': '_acme-challenge',
            'recordType': _type,
            'recordLine': '默认',
            'value': value
        }

但是得改成

body = {
            'Action': 'RecordCreate',
            'domain': 'xxx.com',
            'subDomain': '_acme-challenge.aaa',
            'recordType': _type,
            'recordLine': '默认',
            'value': value
        }

目前我自己使用的时候暴力用了if。由于规则太多(如 com是正常的 ,com.cn、com.hk就是特殊了),就没管了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant