NetworkInterfaceDnsSettings Class
- java.
lang. Object - com.
microsoft. azure. management. network. NetworkInterfaceDnsSettings
- com.
public class NetworkInterfaceDnsSettings
DNS settings of a network interface.
Constructor Summary
Constructor | Description | |
---|---|---|
NetworkInterfaceDnsSettings() |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.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. |
java.util.List<java.lang.String> |
dnsServers()
Get list of DNS servers IP addresses. |
java.lang.String |
internalDnsNameLabel()
Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network. |
java.lang.String |
internalDomainNameSuffix()
Get even if internal |
java.lang.String |
internalFqdn()
Get fully qualified DNS name supporting internal communications between VMs in the same virtual network. |
Network |
withDnsServers(List<String> dnsServers)
Set list of DNS servers IP addresses. |
Network |
withInternalDnsNameLabel(String internalDnsNameLabel)
Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network. |
Methods inherited from java.lang.Object
Constructor Details
NetworkInterfaceDnsSettings
public NetworkInterfaceDnsSettings()
Method Details
appliedDnsServers
public List
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. This property is what is configured on each of those VMs.
Returns:
dnsServers
public List
Get list of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.
Returns:
internalDnsNameLabel
public String internalDnsNameLabel()
Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
Returns:
internalDomainNameSuffix
public String internalDomainNameSuffix()
Get even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM. This DNS name can be constructed by concatenating the VM name with the value of internalDomainNameSuffix.
Returns:
internalFqdn
public String internalFqdn()
Get fully qualified DNS name supporting internal communications between VMs in the same virtual network.
Returns:
withDnsServers
public NetworkInterfaceDnsSettings withDnsServers(List
Set list of DNS servers IP addresses. Use 'AzureProvidedDNS' to switch to azure provided DNS resolution. 'AzureProvidedDNS' value cannot be combined with other IPs, it must be the only value in dnsServers collection.
Parameters:
Returns:
withInternalDnsNameLabel
public NetworkInterfaceDnsSettings withInternalDnsNameLabel(String internalDnsNameLabel)
Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
Parameters:
Returns:
Applies to
Azure SDK for Java