pub fn unpack_resource_body(
    typ: DnsType,
    msg: &[u8],
    off: usize,
    length: usize
) -> Result<(Box<dyn ResourceBody>, usize), Error>