共用方式為


NetworkInterfaceDnsSettings Class

Definition

DNS settings of a network interface.

public class NetworkInterfaceDnsSettings : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.NetworkInterfaceDnsSettings>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.NetworkInterfaceDnsSettings>
type NetworkInterfaceDnsSettings = class
    interface IJsonModel<NetworkInterfaceDnsSettings>
    interface IPersistableModel<NetworkInterfaceDnsSettings>
Public Class NetworkInterfaceDnsSettings
Implements IJsonModel(Of NetworkInterfaceDnsSettings), IPersistableModel(Of NetworkInterfaceDnsSettings)
Inheritance
NetworkInterfaceDnsSettings
Implements

Constructors

NetworkInterfaceDnsSettings()

Initializes a new instance of NetworkInterfaceDnsSettings.

Properties

AppliedDnsServers

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.

DnsServers

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.

InternalDnsNameLabel

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

InternalDomainNameSuffix

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.

InternalFqdn

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

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<NetworkInterfaceDnsSettings>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NetworkInterfaceDnsSettings>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<NetworkInterfaceDnsSettings>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NetworkInterfaceDnsSettings>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NetworkInterfaceDnsSettings>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to