Skip to main content

strip_zone

Function strip_zone 

Source
pub fn strip_zone(fqdn: &str, zone: &str) -> String
Expand description

Strips the zone suffix from a fully-qualified domain name.

Returns the zone name when the FQDN matches the zone (apex).