IP address(es) of mail exchanger (SMTP server) if provided by DNS server, otherwise null/Nothing.
Namespace:
JHSoftwareAssembly: JHSoftware.DnsClient (in JHSoftware.DnsClient.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax
| C# |
|---|
public ReadOnlyCollection<IPAddress> IPAddresses { get; } |
| Visual Basic (Declaration) |
|---|
Public ReadOnly Property IPAddresses As ReadOnlyCollection(Of IPAddress) |
Remarks
Note that the DNS server may or may not provide these IP addresses.
This is optional for the DNS server to do and typically depends on the data being available/cached at the time of the request.
If the DNS server did not provide any IP addresses (the value of this property is null/Nothing),
you can use the LookupHost(String) function on the HostName value to obtain the IP address(es).