<doc>
  <legacy_id>1872</legacy_id>
  <name>DNSServers</name>
  <type>function</type>
  <syntax>
    <example>the DNSServers</example>
    <example>DNSServers()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Networks &amp; Communication</category>
  </classification>
  <references>
    <function tag="hostAddress">hostAddress Function</function>
    <function tag="hostName">hostName Function</function>
    <function tag="hostNameToAddress">hostNameToAddress Function</function>
    <function tag="peerAddress">peerAddress Function</function>
  </references>
  <history>
    <introduced version="2.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> a list of the <glossary tag="DNS">DNS</glossary> servers listed in the system's <glossary tag="TCP">TCP/IP</glossary> network configuration.</summary>
  <examples>
    <example>put the DNSServers into myDNSList</example>
  </examples>
  <description>
    <p>Use the <b>DNSServers</b> <control_st tag="function">function</control_st> to find the <glossary tag="IP address">IP address</glossary> of the <glossary tag="server">servers</glossary> that will be used to translate <glossary tag="IP address">IP addresses</glossary> into <glossary tag="domain name">domain names</glossary>.</p><p/><p><b>Value:</b></p><p>The <b>DNSServers</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a list of <glossary tag="IP address">IP addresses</glossary>, one per line.</p><p/><p><img src="202652"/> <b>Cross-platform note:</b> On <glossary tag="Mac OS">Mac OS systems</glossary>, the <b>DNSServers</b> <control_st tag="function">function</control_st> returns only the first <glossary tag="IP address">IP address</glossary>.</p><p/><p><b>Comments:</b></p><p>When an application requests contact with a system specified by its domain name, the domain name must first be translated into an IP address. A DNS server performs this translation function. In your system's TCP/IP configuration, one or more DNS servers are specified by their IP addresses, and these servers are queried when a domain name needs to be translated to an IP address. (Typically, one or more DNS servers will be configured for an ISP or corporate network; name service is usually centralized.)</p><p/><p>Since the <b>DNSServers</b> <control_st tag="function">function</control_st> reads the value set in the network configuration, it is available even if the system is not currently connected to the <keyword tag="internet">Internet</keyword>.</p>
  </description>
</doc>