pub async fn resolve_fqdn<C, LOC, TAP, MC>(
fqdn: C,
custom_resolv: Option<Arc<ResolveConfig>>,
cache: Arc<CachesController<MC>>,
) -> CDnsResult<Vec<IpAddr>>
Expand description
Resolves the A and AAAA query.
§Arguments
-
custom_resolv
- a custom ResolveConfig wrapped in Arc
§Returns
CDnsResult - Ok with inner type Vec RecordSOA. If vector is empty then no results found.
CDnsResult - Err with error description