pub async fn find_zone_for_host(client: &Client, host: &str) -> Result<Zone>Expand description
The zone host belongs to, among every zone the caller can access (see
zone_for_host). Core still checks that the zone serves the name (not delegated
away, no more specific zone of someone else).
§Errors
Error::NotFoundif no accessible zone contains the host.- Any error of
Zones::list_all.
§Examples
let zone = dinio_sdk::ops::find_zone_for_host(client, "go.example.com").await?;
println!("go.example.com is in {}", zone.name);