Dela via


SiteDnsConfig Class

SiteDnsConfig.

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

Inheritance
azure.mgmt.web._serialization.Model
SiteDnsConfig

Constructor

SiteDnsConfig(*, dns_servers: List[str] | None = None, dns_alt_server: str | None = None, dns_retry_attempt_timeout: int | None = None, dns_retry_attempt_count: int | None = None, dns_max_cache_timeout: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
dns_servers

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

dns_alt_server
str

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

dns_retry_attempt_timeout
int

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

dns_retry_attempt_count
int

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

dns_max_cache_timeout
int

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

Variables

Name Description
dns_servers

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

dns_alt_server
str

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

dns_retry_attempt_timeout
int

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

dns_retry_attempt_count
int

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

dns_max_cache_timeout
int

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

dns_legacy_sort_order

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