<!--
{
  "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/DNSServiceRegisterRecordReply",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "dnssd"
    ],
    "preciseIdentifier" : "c:@T@DNSServiceRegisterRecordReply"
  },
  "title" : "DNSServiceRegisterRecordReply"
}
-->

# DNSServiceRegisterRecordReply

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

```
typealias DNSServiceRegisterRecordReply = (DNSServiceRef?, DNSRecordRef?, DNSServiceFlags, DNSServiceErrorType, UnsafeMutableRawPointer?) -> Void
```

## Parameters

`sdRef`

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

`RecordRef`

The DNSRecordRef initialized by [`DNSServiceRegisterRecord(_:_:_:_:_:_:_:_:_:_:_:_:)`](/documentation/dnssd/DNSServiceRegisterRecord(_:_:_:_:_:_:_:_:_:_:_:_:)). If the above DNSServiceRef is passed to [`DNSServiceRefDeallocate(_:)`](/documentation/dnssd/DNSServiceRefDeallocate(_:)), this DNSRecordRef is invalidated, and may not be used further.

`flags`

Currently unused, reserved for future use.

`errorCode`

Will be [`kDNSServiceErr_NoError`](/documentation/dnssd/kDNSServiceErr_NoError) on success, otherwise will indicate the failure that occurred (including name conflicts.) Other parameters are undefined if errorCode is nonzero.

`context`

The context pointer that was passed to the callout.

---

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)