An NDoc Documented Class Library

SimpleDNSLookup.GetMailExchange Method 

Returns the mail exchange for a given domain.

public static string GetMailExchange(
   string domain
);

Parameters

domain
Domain for which the responsible Mail Exchange should be returned.

Return Value

Mail Exchange for the given domain. null if no record is found.

Exceptions

Exception Type Condition
SocketException If the response is not received within the Timeout period.
Exception If the Name Server can't be determined or any other internal error occurs.

See Also

SimpleDNSLookup Class | Lavantech.Dns Namespace