Function cdns_rs::sync::shortcuts::resolve_mx[][src]

pub fn resolve_mx<D>(
    domain: D,
    aaaa: bool
) -> CDnsResult<Option<Vec<DnsMxResolved>>> where
    D: AsRef<str>, 
Expand description

Searches for the MX records of the provided domain.

Does not take into account the preference.

The reply (on request) timeout is 3 seconds.

Arguments

  • domain - a domain which is required to check.

  • aaaa - if set to true then AAAA will also be resolved.

Returns