NetworkInterfaceDnsSettings Class

DNS settings of a network interface.

Inheritance
NetworkInterfaceDnsSettings

Constructor

NetworkInterfaceDnsSettings(*, dns_servers: typing.Union[typing.List[str], NoneType] = None, applied_dns_servers: typing.Union[typing.List[str], NoneType] = None, internal_dns_name_label: typing.Union[str, NoneType] = None, internal_fqdn: typing.Union[str, NoneType] = None, internal_domain_name_suffix: typing.Union[str, NoneType] = None, **kwargs)

Parameters

dns_servers
list[str]

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.

applied_dns_servers
list[str]

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.

internal_dns_name_label
str

Relative DNS name for this NIC used for internal communications between VMs in the same virtual network.

internal_fqdn
str

Fully qualified DNS name supporting internal communications between VMs in the same virtual network.

internal_domain_name_suffix
str

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.