---
title: useDNSServers
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neevaluateconnectionrule/usednsservers
---

# useDNSServers

If the rule matches the connection being established and the action is NEEvaluateConnectionRuleActionConnectIfNeeded, the DNS servers specified in this array are used to resolve the destination hostname of the connection while evaluating connectivity to the destination of the connection. If the resolution fails for any reason, the VPN is started.

## Declaration

```swift
var useDNSServers: [String]? { get set }
```

## See Also

### Accessing Rule Match Properties

- [matchDomains](networkextension/neevaluateconnectionrule/matchdomains.md)
- [probeURL](networkextension/neevaluateconnectionrule/probeurl.md)
