ali-dns

Crates.ioali-dns
lib.rsali-dns
version0.0.1
sourcesrc
created_at2024-08-19 02:44:53.215985
updated_at2024-08-22 06:02:39.10368
descriptionan aliyun dns skd
homepage
repositoryhttps://github.com/rust-china/ali-dns
max_upload_size
id1343347
size56,259
sanmu (wuyuedefeng)

documentation

https://docs.rs/ali-dns

README

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

Commit count: 0

cargo fmt