NameServer Property  
 

Gets and sets the Internet address for a nameserver.

Syntax

object.NameServer(index) [= value ]

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 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