0%

阿里云ddns

安装 bind-dig,curl,openssl-util

wget https://raw.githubusercontent.com/fyfh/AliDDNSBash/master/ali_ddns.sh

修改 setting字

1
2
3
4
5
6
7
AccessKeyId="MyID"  
AccessKeySec="MySecret"
DomainRecordId="00000"
DomainRR="www"
DomainName="example.com"
DomainType="A"
DNSServer="dns9.hichina.com"

如果不清楚DomainRecordId的话,修改main函数,在里面调用describe_record,如:

1
2
3
4
5
main()
{
describe_record
#update_record
}

执行

修改main函数:

1
2
3
4
5
main()
{
#describe_record
update_record
}

执行

加入cron