2 releases

0.0.1 Aug 22, 2024
0.0.0 Aug 19, 2024

#22 in #aliyun

MIT/Apache

16KB
311 lines

AliDNS  

ci Latest Version downloads

Usage

let dns_client = crate::Client::from_env()?;
let response = dns_client.add_domain_record(domain_name, rr, rr_type, value, line).await?;
println!("Response: {:?}", response);


env config

ALI_DNS_ACCESS_KEY_ID=xxx
ALI_DNS_ACCESS_KEY_SECRET=xxx

Methods:

  • query_domain_records(domain_name)
  • add_domain_record(domain_name, rr, rr_type, value, Option)
  • update_domain_record(record_id, rr, rr_type, value, Option)
  • delete_domain_record(record_id)

官方文档: https://api.aliyun.com/document/Alidns/2015-01-09/AddDomainRecord?spm=a2c4g.11186623.0.0.50a63261yDDaNE&updateTime=2023-10-11

Dependencies

~10–22MB
~420K SLoC