Appearance
GetMailExchangersAsync Method
Definition
- Namespace:
JASE.Network - Assembly:
JASE.Network.dll
Task<IReadOnlyList<MxRecord>> GetMailExchangersAsync(string domain, CancellationToken cancellationToken = null)
csharp
Task<IReadOnlyList<MxRecord>> GetMailExchangersAsync(string domain, CancellationToken cancellationToken = null)Returns the mail exchange (MX) records for a domain name, ordered by ascending preference.
Parameters
| Name | Description |
|---|---|
cancellationToken | A token to cancel the operation. |
domain | The domain name to query. |
Returns
The MX records found, ordered by preference, or an empty list when none exist.