Partilhar via


SiteDnsConfig Class

Definition

The SiteDnsConfig.

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

Constructors

SiteDnsConfig()

Initializes a new instance of SiteDnsConfig.

Properties

DnsAltServer

Alternate DNS server to be used by apps. This property replicates the WEBSITE_DNS_ALT_SERVER app setting.

DnsLegacySortOrder

Indicates that sites using Virtual network custom DNS servers are still sorting the list of DNS servers. Read-Only.

DnsMaxCacheTimeout

Custom time for DNS to be cached in seconds. Allowed range: 0-60. Default is 30 seconds. 0 means caching disabled.

DnsRetryAttemptCount

Total number of retries for dns lookup. Allowed range: 1-5. Default is 3.

DnsRetryAttemptTimeout

Timeout for a single dns lookup in seconds. Allowed range: 1-30. Default is 3.

DnsServers

List of custom DNS servers to be used by an app for lookups. Maximum 5 dns servers can be set.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<SiteDnsConfig>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<SiteDnsConfig>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<SiteDnsConfig>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<SiteDnsConfig>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<SiteDnsConfig>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to