dns_types::zones::deserialise

Function parse_domain

Source
fn parse_domain(
    origin: Option<&DomainName>,
    dotted_string: &str,
) -> Result<DomainName, Error>
Expand description

Parse a domain name, appending the origin if it’s not absolute.

§Errors

If the string cannot be parsed.