---
title: "dnssecValidationRequired(_:)"
framework: network
role: symbol
role_heading: Instance Method
path: "network/nwparametersprovider/dnssecvalidationrequired(_:)"
---

# dnssecValidationRequired(_:)

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

## Declaration

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

## Parameters

- `required`: True if DNSSEC validation is required, false otherwise.

## Discussion

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.
