Function cdns_rs::a_sync::request::resolve_mx [−][src]
pub async fn resolve_mx<C>(
fqdn: C,
custom_resolv: Option<Arc<ResolveConfig>>
) -> CDnsResult<Vec<String>> where
C: AsRef<str>,
Expand description
Resolves the MX record by domain name. It returns a list of domains.
The list is sorted by the preference
.
Arguments
-
fqdn
- AsRefa domain name -
custom_resolv
- a custom ResolveConfig wrapped in Arc
Returns
CDnsResult - Ok with inner type Vec DnsSoa. If vector is empty then no results found.
CDnsResult - Err with error description