aliyun-ddns-client icon indicating copy to clipboard operation
aliyun-ddns-client copied to clipboard

目前子域名只能填写一个,希望能填写一个数组,并且可以同时更新数组内的组域名。

Open snowdream opened this issue 6 years ago • 4 comments

目前子域名只能填写一个,希望能填写一个数组,并且可以同时更新数组内的组域名。

# subdomain name, like www, blog, bbs, *, @, ...
sub_domain=

snowdream avatar May 10 '18 04:05 snowdream

这个是设计在配置文件里面写多个section来实现:

[DomainRecord1]
domain= test.com
# subdomain name, like www, blog, bbs, *, @, ...
sub_domain= www
# resolve type, 'A', 'AAAA'..., currently it only supports 'A'
type=A

[DomainRecord2]
domain= test.com
# subdomain name, like www, blog, bbs, *, @, ...
sub_domain= bbs
# resolve type, 'A', 'AAAA'..., currently it only supports 'A'
type=A
...

rfancn avatar May 11 '18 01:05 rfancn

建议section调整为支持多域名,而sub_domain调整为支持多子域名。@rfancn

snowdream avatar May 11 '18 02:05 snowdream

同样的问题,建议 sub_domain 可以支持数组,这样在一级域名相同的情况下不需要重复 Section 的其余配置。

BerdyPango avatar Aug 04 '18 14:08 BerdyPango

可以通过指定启动参数,加载不同的配置文件,来实现多域名。 systemctl enable [email protected] 这样更灵活,还能修改不同aliyun账号下的域名。

zcq100 avatar Mar 09 '19 03:03 zcq100