<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Network",
  "identifier" : "/documentation/Network/NWConnection/EstablishmentReport/Resolution",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Network"
    ],
    "preciseIdentifier" : "s:7Network12NWConnectionC19EstablishmentReportV10ResolutionV"
  },
  "title" : "NWConnection.EstablishmentReport.Resolution"
}
-->

# NWConnection.EstablishmentReport.Resolution

A description of a single DNS resolution step.

```
struct Resolution
```

## Topics

### Measuring Performance

[`let duration: TimeInterval`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/duration)

The duration of this resolution step, from when the query was issued to when the response was complete.

[`let source: NWConnection.EstablishmentReport.Resolution.Source`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/source-swift.property)

The source of the DNS response.

[`enum Source`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/Source-swift.enum)

Sources that may provide DNS responses.

[`var dnsProtocol: NWConnection.EstablishmentReport.Resolution.DNSProtocol`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/dnsProtocol-swift.property)

The transport protocol your connection used for DNS resolution.

[`enum DNSProtocol`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/DNSProtocol-swift.enum)

A set of transport protocols connections use for DNS resolution.

### Examining Resolved Endpoints

[`let successfulEndpoint: NWEndpoint`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/successfulEndpoint)

The resolved endpoint that led to the established connection.

[`let preferredEndpoint: NWEndpoint`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/preferredEndpoint)

The resolved endpoint that the connection used for its first connection attempt.

[`let endpointCount: Int`](/documentation/Network/NWConnection/EstablishmentReport/Resolution/endpointCount)

The number of endpoints resolved in this step.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Sendable`](/documentation/Swift/Sendable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)