Crate whos

Source
Expand description

§whos("th.at")? - Rust whois library

Query data using the WHOIS protocol (RFC 3912).

let domain = whos::domain("debian.org").unwrap().unwrap();
assert_eq!(domain.name, "debian.org");
assert_eq!(domain.suffix, ".org");
assert_eq!(domain.created.as_deref(), Some("1999-03-10T05:00:00Z"));

Parsing is currently focused on domain names.

Modules§

domain
WHOIS data parsing for domain names.

Enums§

Error

Statics§

SUFFIX_SERVER_LIST

Functions§

domain
Query WHOIS data for domain name. Data from whois(1) is used to determine which server to query.
whois_raw