resolved::fs

Function zone_from_file

Source
async fn zone_from_file<P: AsRef<Path>>(path: P) -> Result<Result<Zone, Error>>
Expand description

Read a zone file.

If it has a SOA record, it is an authoritative zone: it may only have one SOA record, and all RRs must be subdomains of the SOA domain.

If it does not have a SOA record, it is a non-authoritative zone, and the root domain will be used for its apex.