Class NetworkInterfaceDnsSettings
java.lang.Object
com.microsoft.azure.management.network.NetworkInterfaceDnsSettings
DNS settings of a network interface.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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.Get list of DNS servers IP addresses.Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network.Get even if internalDnsNameLabel is not specified, a DNS entry is created for the primary NIC of the VM.Get fully qualified DNS name supporting internal communications between VMs in the same virtual network.withDnsServers
(List<String> dnsServers) Set list of DNS servers IP addresses.withInternalDnsNameLabel
(String internalDnsNameLabel) Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network.
-
Constructor Details
-
NetworkInterfaceDnsSettings
public NetworkInterfaceDnsSettings()
-
-
Method Details
-
dnsServers
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:
- the dnsServers value
-
withDnsServers
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:
dnsServers
- the dnsServers value to set- Returns:
- the NetworkInterfaceDnsSettings object itself.
-
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. This property is what is configured on each of those VMs.- Returns:
- the appliedDnsServers value
-
internalDnsNameLabel
Get relative DNS name for this NIC used for internal communications between VMs in the same virtual network.- Returns:
- the internalDnsNameLabel value
-
withInternalDnsNameLabel
Set relative DNS name for this NIC used for internal communications between VMs in the same virtual network.- Parameters:
internalDnsNameLabel
- the internalDnsNameLabel value to set- Returns:
- the NetworkInterfaceDnsSettings object itself.
-
internalFqdn
Get fully qualified DNS name supporting internal communications between VMs in the same virtual network.- Returns:
- the internalFqdn value
-
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:
- the internalDomainNameSuffix value
-