---
title: dnsServerAddressMatch
framework: networkextension
role: symbol
role_heading: Instance Property
path: networkextension/neondemandrule/dnsserveraddressmatch
---

# dnsServerAddressMatch

DNS server addresses that identify a network.

## Declaration

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

## Discussion

Discussion An array of DNS server IP addresses represented as NSString objects. If each of the current default DNS servers is equal to one of the strings in this array and all of the other conditions in the rule match, then the rule matches. If this property is nil (the default), then the default DNS servers do not factor into the rule match.

## See Also

### Accessing match parameters

- [dnsSearchDomainMatch](networkextension/neondemandrule/dnssearchdomainmatch.md)
- [interfaceTypeMatch](networkextension/neondemandrule/interfacetypematch.md)
- [NEOnDemandRuleInterfaceType](networkextension/neondemandruleinterfacetype.md)
- [ssidMatch](networkextension/neondemandrule/ssidmatch.md)
- [probeURL](networkextension/neondemandrule/probeurl.md)
