The following sample displays the mail servers responsible for the host, in the mail server preference order:
Dim n As New LookupNS
MsgBox n.Query("microsoft.com").MailExchange
The Message object supports the following properties and methods:


| Name | Description | |||
| AAAA | Retrieves the IPv6 address. | |||
| Address | Retrieves the host IP address(es). The list is separated by Separator. | |||
| CanonicalName | Retrieves a value that specifies the canonical or primary name for the host. | |||
| DomainNamePointer | Retrieves a value that indicates the domain name pointer of the host. | |||
| HostInformation | Retrieves information about a host. | |||
| Location | Retrieves the location where the host is located. | |||
| MailBoxDomainName | Retrieves the domain name that specifies a host that has a specified mailbox. | |||
| MailDestination | Specifies a host which has a mail agent for the domain which should be able to deliver mail for the domain. | |||
| MailExchange | Retrieves a list of mail servers for the Host, ordered by preferences, and separated by Separator. | |||
| MailForwarder | Retrieves a domain name which specifies a host which has a mail agent for the domain which will accept mail for forwarding to the domain. | |||
| MailGroupMember | Specifies a mailbox which is a member of the mail group specified by the domain name. | |||
| MailInformation | Retrieves a mailbox or mail list information. | |||
| MailRenameDomainName | Specifies a mailbox which is the proper rename of the specified mailbox. | |||
| NameServer | Retrieves the host's name server. | |||
| WellKnownService | Retrieves description for a well known service. | |||
| ZoneOfAuthority | Specifies the start of the zone of authority for the host. |