NameServer Property

Gets and sets the Internet address for a nameserver.

Syntax

object.NameServer(index) [= value]

The NameServer property syntax has the following parts:

Part Description
object An object expression that evaluates to an InternetMail object.
index An integer which specifies the nameserver.
value A string which specifies the new server address.

Remarks

The NameServer property array is used to specify one or more nameservers. The address value must be an Internet address in dot notation. The index specifies which nameserver to set or return a value for. There may be up to four nameservers defined for any single instance of the object.

A nameserver is a computer which converts a domain name, such as microsoft.com, into an IP address which can be used to establish a connection to a remote server. In addition to mapping domain names, nameservers also can return information about what servers are responsible for handling mail messages for a given domain. These servers are called "mail exchanges" and there may be more than one mail exchange for a domain, each with its own assigned priority. This information is used by the SendMessage method to determine the address of the appropriate SMTP server in order to deliver the message to the specified recipient.

If no nameservers are specified, then the default nameservers for the local host will be used. For those systems which use dial-up connections to the Internet, this requires that the system have an active connection established before this object is initialized.

Data Type

String


Copyright © 2008 Catalyst Development Corporation. All rights reserved.