Exporteren (0) Afdrukken
Alles uitvouwen
EN
Deze inhoud is niet beschikbaar in uw taal, maar wel in het Engels.

Specifying a DNS Settings in a Virtual Network Configuration File

Updated: April 14, 2015

A network configuration file has two elements that you can use to specify Domain Name System (DNS) settings: DnsServers and DnsServerRef. You can add a list of DNS servers by specifying their IP addresses and reference names to the DnsServers element. You can then use a DnsServerRef element to specify which DNS server entries from the DnsServers element are used for different network sites within your virtual network.

ImportantImportant
For information about how to configure the network configuration file, see Configure a Virtual Network Using a Network Configuration File. For information about each element contained in the network configuration file, see Azure Virtual Network Configuration Schema.

The network configuration file may contain the following elements. The title of each element is linked to a page that provides additional information about the element value settings.

Dns Element


    <Dns>
      <DnsServers>
        <DnsServer name="ID1" IPAddress="IPAddress1" />
        <DnsServer name="ID2" IPAddress="IPAddress2" />
        <DnsServer name="ID3" IPAddress="IPAddress3" />
      </DnsServers>
    </Dns>
        
WarningWarning
The name attribute in the DnsServer element is used only as a reference for the DnsServerRef element. It does not represent the host name for the DNS server. Each DnsServer attribute value must be unique across the entire Microsoft Azure subscription

Virtual Network Sites Element

<DnsServersRef>
  <DnsServerRef name="ID1" />
  <DnsServerRef name="ID2" />
  <DnsServerRef name="ID3" />
</DnsServersRef>
noteNote
In order to specify this setting for the Virtual Network Sites element, it must be previously defined in the DNS element. The DnsServerRef name in the Virtual Network Sites element must refer to a name value specified in the DNS element for DnsServer name.

See Also

Weergeven:
© 2015 Microsoft