Skip to main content

find_zone_for_host

Function find_zone_for_host 

Source
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

§Examples

let zone = dinio_sdk::ops::find_zone_for_host(client, "go.example.com").await?;
println!("go.example.com is in {}", zone.name);