Compartilhar via


NetworkInterfaceDnsSettings Class

DNS settings of a network interface.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.network._serialization.Model
NetworkInterfaceDnsSettings

Constructor

NetworkInterfaceDnsSettings(*, dns_servers: List[str] | None = None, internal_dns_name_label: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
dns_servers

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.

internal_dns_name_label
str

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

Variables

Name Description
dns_servers

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

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.