Function deltachat::provider::get_resolver

source ·
fn get_resolver() -> Result<TokioAsyncResolver>
Expand description

Get resolver to query MX records.

We first try to read the system’s resolver from /etc/resolv.conf. This does not work at least on some Androids, therefore we fallback to the default ResolverConfig which uses eg. to google’s 8.8.8.8 or 8.8.4.4.