<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.12.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "dnssd",
  "identifier" : "/documentation/dnssd/DNSServiceDomainEnumReply",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "dnssd"
    ],
    "preciseIdentifier" : "c:@T@DNSServiceDomainEnumReply"
  },
  "title" : "DNSServiceDomainEnumReply"
}
-->

# DNSServiceDomainEnumReply

Callback for handling the results of a previous call to [`DNSServiceEnumerateDomains(_:_:_:_:_:)`](/documentation/dnssd/DNSServiceEnumerateDomains(_:_:_:_:_:)).

```
typealias DNSServiceDomainEnumReply = (DNSServiceRef?, DNSServiceFlags, UInt32, DNSServiceErrorType, UnsafePointer<CChar>?, UnsafeMutableRawPointer?) -> Void
```

## Parameters

`sdRef`

The DNSServiceRef initialized by [`DNSServiceEnumerateDomains(_:_:_:_:_:)`](/documentation/dnssd/DNSServiceEnumerateDomains(_:_:_:_:_:)).

`flags`

Possible values are:

[`kDNSServiceFlagsMoreComing`](/documentation/dnssd/kDNSServiceFlagsMoreComing)

    kDNSServiceFlagsAdd

    kDNSServiceFlagsDefault

`interfaceIndex`

Specifies the interface on which the domain exists. (The index for a given interface is determined via the if_nametoindex() family of calls.)

`errorCode`

Will be [`kDNSServiceErr_NoError`](/documentation/dnssd/kDNSServiceErr_NoError) (0) on success, otherwise indicates the failure that occurred (other parameters are undefined if errorCode is nonzero).

`replyDomain`

The name of the domain.

`context`

The context pointer passed to DNSServiceEnumerateDomains.

---

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)