<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.14.0 -",
    "tvOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/nw_parameters_expired_dns_behavior_t",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "c:@EA@nw_parameters_expired_dns_behavior_t"
  },
  "title" : "nw_parameters_expired_dns_behavior_t"
}
-->

# nw_parameters_expired_dns_behavior_t

Options for configuring how expired DNS answers should be used.

```
struct nw_parameters_expired_dns_behavior_t
```

## Topics

### Creating an expired DNS behavior instance

[`init(_:)`](/documentation/Network/nw_parameters_expired_dns_behavior_t/init(_:))

Creates an instance of the expired DNS behavior structure.

[`init(rawValue:)`](/documentation/Network/nw_parameters_expired_dns_behavior_t/init(rawValue:))

Creates an instance of the expired DNS behavior structure.

### Expired DNS behaviors

[`nw_parameters_expired_dns_behavior_default`](/documentation/Network/nw_parameters_expired_dns_behavior_default)

Let the system determine whether or not to allow expired DNS answers.

[`nw_parameters_expired_dns_behavior_allow`](/documentation/Network/nw_parameters_expired_dns_behavior_allow)

Explicitly allow the use of expired DNS answers.

[`nw_parameters_expired_dns_behavior_prohibit`](/documentation/Network/nw_parameters_expired_dns_behavior_prohibit)

Explicitly prohibit the use of expired DNS answers.

### Accessing the raw value

[`rawValue`](/documentation/Network/nw_parameters_expired_dns_behavior_t/rawValue)

The raw value of this instance.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)