---
title: matchDomains
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neapprule/matchdomains
---

# matchDomains

The hostname domains that match the rule.

## Declaration

```swift
var matchDomains: [Any]? { get set }
```

## Discussion

Discussion If this property is set to a nonempty array, then only connections to destinations in the domains specified in the array will use the VPN.

## See Also

### Accessing app rule properties

- [matchSigningIdentifier](networkextension/neapprule/matchsigningidentifier.md)
- [matchDesignatedRequirement](networkextension/neapprule/matchdesignatedrequirement.md)
- [matchPath](networkextension/neapprule/matchpath.md)
- [matchTools](networkextension/neapprule/matchtools.md)
