Share via


IWithDnsServer Interface

Definition

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

public interface IWithDnsServer
type IWithDnsServer = interface
Public Interface IWithDnsServer
Derived

Methods

WithAzureDnsServer()

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)

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)

Removes a DNS server associated with the network interface.

Applies to