---
title: excludedDomains
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/excludeddomains
---

# excludedDomains

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

## Declaration

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

## Discussion

Discussion Excluded domains take precedence over domains listed in matchDomains.

## See Also

### Accessing relay configuration properties

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