pub fn parse(body: &str, record_type: u16) -> Result<Vec<String>, String>Expand description
Reads one answer: the records of type record_type, as strings.
A name that exists with no record of this type is an empty vector. A name that does not exist at all is an error, because a check walking up a zone reads the two differently.
ยงErrors
The body is not the JSON this form defines, or the resolver answered with a DNS status other than NOERROR.