---
title: matchDomains
framework: Network Extension
role: symbol
role_heading: Instance Property
platforms: [iOS 17.0+, iPadOS 17.0+, Mac Catalyst 17.0+, macOS 14.0+, tvOS 17.0+, visionOS 1.0+]
path: networkextension/nerelaymanager/matchdomains
---

# matchDomains

A list of domain strings used to determine which connections will use the relay configuration contained in this object.

## Declaration

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

## Discussion

Discussion This property is used to create a “split DNS” configuration, where only hosts in certain domains route through the relays.

## See Also

### Accessing relay configuration properties

- [isEnabled](networkextension/nerelaymanager/isenabled.md)
- [relays](networkextension/nerelaymanager/relays.md)
- [excludedDomains](networkextension/nerelaymanager/excludeddomains.md)
- [localizedDescription](networkextension/nerelaymanager/localizeddescription.md)
- [onDemandRules](networkextension/nerelaymanager/ondemandrules.md)
- [NEOnDemandRule](networkextension/neondemandrule.md)
