NetworkInterface.UpdateStages.WithDnsServer Interface
public static interface NetworkInterface.UpdateStages.WithDnsServer
The stage of the network interface update allowing to specify DNS servers.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Update |
withAzureDnsServer()
Specifies to use the default Azure DNS server for the network interface. |
abstract Update |
withDnsServer(String ipAddress)
Specifies the IP address of the custom DNS server to associate with the network interface. |
abstract Update |
withoutDnsServer(String ipAddress)
Removes a DNS server associated with the network interface. |
Method Details
withAzureDnsServer
public abstract NetworkInterface.Update 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.
Returns:
withDnsServer
public abstract NetworkInterface.Update 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.
Parameters:
Returns:
withoutDnsServer
public abstract NetworkInterface.Update withoutDnsServer(String ipAddress)
Removes a DNS server associated with the network interface.
Parameters:
Returns:
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per