public static interface NetworkInterface.UpdateStages.WithDnsServer
Modifier and Type | Method and Description |
---|---|
NetworkInterface.Update |
withAzureDnsServer()
Specifies to use the default Azure DNS server for the network interface.
|
NetworkInterface.Update |
withDnsServer(String ipAddress)
Specifies the IP address of the custom DNS server to associate with the network interface.
|
NetworkInterface.Update |
withoutDnsServer(String ipAddress)
Removes a DNS server associated with the network interface.
|
NetworkInterface.Update withDnsServer(String ipAddress)
Note this method's effect is additive, i.e. each time it is used, the new dns server is added to the network interface.
ipAddress
- the IP address of the DNS serverNetworkInterface.Update withoutDnsServer(String ipAddress)
ipAddress
- the IP address of the DNS serverNetworkInterface.Update withAzureDnsServer()
Using azure DNS server will remove any custom DNS server associated with this network interface.
Copyright © 2019. All rights reserved.