Eksportuj (0) Drukuj
Rozwiń wszystko
Ta zawartość nie jest dostępna w wymaganym języku. Wersja w języku angielskim znajduje się tutaj.

Add or Remove DNS Servers for a Virtual Network

Updated: November 11, 2014

If you want to register DNS servers, or update the list of DNS servers available for your virtual network, you can easily edit the DNS Servers list. You can make changes either in the Management Portal, or in the network configuration file. You don’t need to delete and recreate your virtual network in order to make changes to the DNS Servers list.

You can specify up to 12 DNS servers. When specifying DNS servers, it’s important to verify that you list your DNS servers in the correct order for your environment. DNS server lists do not work round-robin. They are used in the order that they are specified. If the first DNS server on the list is able to be reached, the client will use that DNS server regardless of whether the DNS server is functioning properly or not. To change the DNS server order for your virtual network, remove the DNS servers from the list and add them back in the order that you want.

After the DNS list has been updated, you must restart the virtual machines located in your virtual network so that they pick up the new DNS server settings. Virtual machines will continue to use their current configuration until they are restarted.

  1. Log on to the Management Portal.

  2. In the navigation pane, click Networks, and then click the name of your virtual network in the Name column.

  3. Click Configure.

  4. In DNS Servers, You can configure the following:

    • To register (add) a new DNS server – Simply type the name and IP address in the boxes. This adds a DNS server to your virtual network DNS Servers list and also registers the DNS server with Azure.

    • To add a DNS server that was previously registered – If you already registered a DNS server with Azure, you can select it from the pre-populated list.

    • To remove a DNS server from your virtual network – Click the X next to the server you want to remove. Note that this only removes the server from this virtual network list. The DNS server remains registered in Azure for your other virtual networks to use. To delete a DNS server from your subscription, go to the Networks ->DNS Servers page.

    • To re-order DNS servers – Remove all of the DNS servers that are listed, and then add them back in in the order that you want. Remember that this is not a round-robin DNS list.

    • To rename a DNS server – Highlight the DNS server in the list, then type the new name. This will register a new DNS server in Azure, as well as add it to the DNS Servers list for your virtual network. The old DNS server and its IP address will remain registered with Azure. You can delete it on the DNS Servers page if you are not using it for any other virtual networks.

  5. Click Save at the bottom of the page to save your new DNS servers configuration.

  6. Restart the virtual machines located in the virtual network to allow them to acquire the new DNS settings.

To edit a DNS server list by using a network configuration file, you’ll first export your configuration settings from the Management Portal. You’ll then edit the network configuration file and import it back through the Management Portal. Below is a high-level list of steps to complete this process.

  1. Export your virtual network settings to a network configuration file.
    For more information and steps to export your network configuration settings, see Export Virtual Network Settings to a Network Configuration File.

  2. Specify the DNS server information for your virtual network.
    For more information about specifying a DNS server, see Specifying a DNS Server in a Virtual Network Configuration File. For additional information about network configuration files, see Azure Virtual Network Configuration Schema and Configure a Virtual Network Using a Network Configuration File.

  3. Import the network configuration file.
    For more information and steps to import your network configuration file, see Import a Network Configuration File.

  4. Restart the virtual machines located in the virtual network to allow them to acquire the new DNS settings.

See Also

© 2015 Microsoft