---
title: DNSServiceRegisterRecordReply
framework: dnssd
role: symbol
role_heading: Type Alias
path: dnssd/dnsserviceregisterrecordreply
---

# DNSServiceRegisterRecordReply

Callback for handling the results of a previous call to DNSServiceRegisterRecord(_:_:_:_:_:_:_:_:_:_:_:_:).

## Declaration

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

## Parameters

- `sdRef`: The connected DNSServiceRef initialized by doc://com.apple.dnssd/documentation/dnssd/DNSServiceCreateConnection(_:).
- `RecordRef`: The DNSRecordRef initialized by doc://com.apple.dnssd/documentation/dnssd/DNSServiceRegisterRecord(_:_:_:_:_:_:_:_:_:_:_:_:). If the above DNSServiceRef is passed to doc://com.apple.dnssd/documentation/dnssd/DNSServiceRefDeallocate(_:), this DNSRecordRef is invalidated, and may not be used further.
- `flags`: Currently unused, reserved for future use.
- `errorCode`: Will be doc://com.apple.dnssd/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.

## See Also

### Callbacks

- [DNSServiceGetAddrInfoReply](dnssd/dnsservicegetaddrinforeply.md)
- [DNSServiceRegisterReply](dnssd/dnsserviceregisterreply.md)
- [DNSServiceBrowseReply](dnssd/dnsservicebrowsereply.md)
- [DNSServiceResolveReply](dnssd/dnsserviceresolvereply.md)
- [DNSServiceQueryRecordReply](dnssd/dnsservicequeryrecordreply.md)
- [DNSServiceNATPortMappingReply](dnssd/dnsservicenatportmappingreply.md)
- [DNSServiceDomainEnumReply](dnssd/dnsservicedomainenumreply.md)
