Async and fast RDAP client and parser for Rust.
Add this to your Cargo.toml
:
toml
[dependencies]
rdap_client = "0.2"
tokio = "0.2"
and then you can use it like this:
```rust use rdap_client::Client;
async fn main() { let client = Client::new(); let domaintocheck = "nic.cz"; // Fetch boostrap from IANA. let bootstrap = client.fetchbootstrap().await.unwrap(); // Find what RDAP server to use for given domain. if let Some(servers) = bootstrap.dns.find(&domaintocheck) { let response = client.querydomain(&servers[0], domaintocheck).await.unwrap(); println!("{}", response.handle); } } ```
Because of usage async-await syntax, minimum required Rust version is 1.39.0.
fred
cidr0
arin_originas0
rdap_objectTag
(RFC 8521)Not all RDAP servers follows RFC 7483 and then parser cannot parse that responses correctly. If that happend, feel
free to open issue with URI that rdap_client
could not parse.