# SiteDnsConfigProxy

- Module: [Aspire.Hosting.Azure.Provisioning.AppService](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice.md)
- Version: `17.0.0-preview.1.26567.5`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/2d325b13709752ba6d9a943635c5e2940a2530c0)

Represents the SiteDnsConfig Azure Provisioning model.

## Definition

```typescript
interface SiteDnsConfigProxy {
  dnsAltServer: BicepValueProxy | string;
  readonly dnsLegacySortOrder: BicepValueProxy | boolean;
  dnsMaxCacheTimeout: BicepValueProxy | number;
  dnsRetryAttemptCount: BicepValueProxy | number;
  dnsRetryAttemptTimeout: BicepValueProxy | number;
  dnsServers: Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy;
  clearDnsAltServer(): void;
  clearDnsMaxCacheTimeout(): void;
  clearDnsRetryAttemptCount(): void;
  clearDnsRetryAttemptTimeout(): void;
}
```

## Properties

- `dnsAltServer`: `BicepValueProxy | string` `get - set` -- Gets or sets the DnsAltServer provisioning property.
- `dnsLegacySortOrder`: `BicepValueProxy | boolean` `get` -- Gets the DnsLegacySortOrder provisioning property.
- `dnsMaxCacheTimeout`: `BicepValueProxy | number` `get - set` -- Gets or sets the DnsMaxCacheTimeout provisioning property.
- `dnsRetryAttemptCount`: `BicepValueProxy | number` `get - set` -- Gets or sets the DnsRetryAttemptCount provisioning property.
- `dnsRetryAttemptTimeout`: `BicepValueProxy | number` `get - set` -- Gets or sets the DnsRetryAttemptTimeout provisioning property.
- `dnsServers`: [Aspire_Hosting_Azure_Provisioning_AppService_Generated_ListOfStringProxy](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/aspire-hosting-azure-provisioning-appservice-generated-listofstringproxy.md) `get - set` -- Gets or sets the DnsServers provisioning property.

## Methods

- [clearDnsAltServer](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/sitednsconfigproxy/cleardnsaltserver.md) -- `method` -- Clears the DnsAltServer provisioning property.
    ```typescript
  clearDnsAltServer(): void
  ```
- [clearDnsMaxCacheTimeout](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/sitednsconfigproxy/cleardnsmaxcachetimeout.md) -- `method` -- Clears the DnsMaxCacheTimeout provisioning property.
    ```typescript
  clearDnsMaxCacheTimeout(): void
  ```
- [clearDnsRetryAttemptCount](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/sitednsconfigproxy/cleardnsretryattemptcount.md) -- `method` -- Clears the DnsRetryAttemptCount provisioning property.
    ```typescript
  clearDnsRetryAttemptCount(): void
  ```
- [clearDnsRetryAttemptTimeout](/reference/api/typescript/aspire.hosting.azure.provisioning.appservice/sitednsconfigproxy/cleardnsretryattempttimeout.md) -- `method` -- Clears the DnsRetryAttemptTimeout provisioning property.
    ```typescript
  clearDnsRetryAttemptTimeout(): void
  ```
