<!--
{
  "documentType" : "article",
  "framework" : "dnssd",
  "identifier" : "/documentation/dnssd/dnssd-functions",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "dnssd Functions"
}
-->

# dnssd Functions

## Topics

### Functions

[`func DNSServiceSleepKeepalive(UnsafeMutablePointer<DNSServiceRef?>!, DNSServiceFlags, Int32, UInt32, DNSServiceSleepKeepaliveReply!, UnsafeMutableRawPointer!) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceSleepKeepalive(_:_:_:_:_:_:))

[`func DNSServiceAttributeCreate() -> DNSServiceAttributeRef?`](/documentation/dnssd/DNSServiceAttributeCreate())

[`func DNSServiceAttributeDeallocate(DNSServiceAttributeRef)`](/documentation/dnssd/DNSServiceAttributeDeallocate(_:))

[`func DNSServiceAttributeSetAAAAPolicy(DNSServiceAttributeRef, DNSServiceAAAAPolicy) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceAttributeSetAAAAPolicy(_:_:))

[`func DNSServiceAttributeSetHostKeyHash(DNSServiceAttributeRef, UInt32) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceAttributeSetHostKeyHash(_:_:))

[`func DNSServiceAttributeSetTimestamp(DNSServiceAttributeRef, UInt32) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceAttributeSetTimestamp(_:_:))

[`func DNSServiceQueryRecordWithAttribute(UnsafeMutablePointer<DNSServiceRef>?, DNSServiceFlags, UInt32, UnsafePointer<CChar>?, UInt16, UInt16, OpaquePointer?, DNSServiceQueryRecordReply?, UnsafeMutableRawPointer?) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceQueryRecordWithAttribute(_:_:_:_:_:_:_:_:_:))

[`func DNSServiceRegisterRecordWithAttribute(DNSServiceRef?, UnsafeMutablePointer<DNSRecordRef>?, DNSServiceFlags, UInt32, UnsafePointer<CChar>?, UInt16, UInt16, UInt16, UnsafeRawPointer?, UInt32, DNSServiceAttributeRef?, DNSServiceRegisterRecordReply?, UnsafeMutableRawPointer?) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceRegisterRecordWithAttribute(_:_:_:_:_:_:_:_:_:_:_:_:_:))

[`func DNSServiceRegisterWithAttribute(UnsafeMutablePointer<DNSServiceRef>?, DNSServiceFlags, UInt32, UnsafePointer<CChar>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?, UnsafePointer<CChar>?, UInt16, UInt16, UnsafeRawPointer?, DNSServiceAttributeRef?, DNSServiceRegisterReply?, UnsafeMutableRawPointer?) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceRegisterWithAttribute(_:_:_:_:_:_:_:_:_:_:_:_:_:))

[`func DNSServiceSendQueuedRequests(DNSServiceRef?) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceSendQueuedRequests(_:))

[`func DNSServiceUpdateRecordWithAttribute(DNSServiceRef?, DNSRecordRef?, DNSServiceFlags, UInt16, UnsafeRawPointer?, UInt32, DNSServiceAttributeRef?) -> DNSServiceErrorType`](/documentation/dnssd/DNSServiceUpdateRecordWithAttribute(_:_:_:_:_:_:_:))



---

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)