public class NetworkInterfaceDnsSettings extends Object
| Constructor and Description |
|---|
NetworkInterfaceDnsSettings() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
appliedDnsServers()
Get if the VM that uses this NIC is part of an Availability Set, then this list will have the union of all DNS servers from all NICs that are part of the Availability Set.
|
List<String> |
dnsServers()
Get list of DNS servers IP addresses.
|
String |
internalDnsNameLabel()
Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
|
String |
internalDomainNameSuffix()
Get even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM.
|
String |
internalFqdn()
Get fully qualified DNS name supporting internal communications between VMs in the same virtual network.
|
NetworkInterfaceDnsSettings |
withDnsServers(List<String> dnsServers)
Set list of DNS servers IP addresses.
|
NetworkInterfaceDnsSettings |
withInternalDnsNameLabel(String internalDnsNameLabel)
Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
|
public List<String> dnsServers()
public NetworkInterfaceDnsSettings withDnsServers(List<String> dnsServers)
dnsServers - the dnsServers value to setpublic List<String> appliedDnsServers()
public String internalDnsNameLabel()
public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNameLabel)
internalDnsNameLabel - the internalDnsNameLabel value to setpublic String internalFqdn()
public String internalDomainNameSuffix()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/