NetworkInterface.UpdateStages.WithDnsServer 接口


The stage of the network interface update allowing to specify DNS servers.

public interface WithDnsServer



Specifies to use the default Azure DNS server for the network interface.

Using azure DNS server will remove any custom DNS server associated with this network interface.

withDnsServer(String ipAddress)

Specifies the IP address of the custom DNS server to associate with the network interface.

Note this method's effect is additive, i.e. each time it is used, the new dns server is added to the network interface.

withoutDnsServer(String ipAddress)

Removes a DNS server associated with the network interface.