<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWParametersProvider/dnssecValidationRequired(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network20NWParametersProviderP24dnssecValidationRequiredyxSbF"
  },
  "title" : "dnssecValidationRequired(_:)"
}
-->

# dnssecValidationRequired(_:)

Require DNSSEC validation when resolving an endpoint before making
a connection.

```
func dnssecValidationRequired(_ required: Bool) -> Self
```

## Parameters

`required`

True if DNSSEC validation is required, false otherwise.

## Discussion

DNSSEC validation only takes effect if making a connection to an endpoint that
requires domain name resolution, such as a host or URL endpoint.

- If this is not set or is set to `false`, DNSSEC validation
  will not be required.
- If this is set to `true` and no additional DNSSEC configuration
  is set, the default behavior will be followed:
  Only DNSSEC secure and DNSSEC insecure
  resolved results will be used to establish a connection.
- If this is set to `true` and additional DNSSEC configuration
  is set on the parameters, the behavior specified by that configuration will be used.

---

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)