<!--
{
  "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/kDNSServiceFlagsTimeout",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "dnssd"
    ],
    "preciseIdentifier" : "c:@Ea@kDNSServiceFlagsMoreComing@kDNSServiceFlagsTimeout"
  },
  "title" : "kDNSServiceFlagsTimeout"
}
-->

# kDNSServiceFlagsTimeout

```
var kDNSServiceFlagsTimeout: UInt32 { get }
```

## Discussion

When passed to [`DNSServiceQueryRecord(_:_:_:_:_:_:_:_:)`](/documentation/dnssd/DNSServiceQueryRecord(_:_:_:_:_:_:_:_:)) or [`DNSServiceGetAddrInfo(_:_:_:_:_:_:_:)`](/documentation/dnssd/DNSServiceGetAddrInfo(_:_:_:_:_:_:_:)), the query is stopped after a certain number of seconds have elapsed. The time at which the query is stopped is determined by the system and cannot be configured by the user. The query is stopped irrespective of whether a response was given earlier or not. When the query is stopped, the callback is called with an error code of kDNSServiceErr_Timeout and a NULL sockaddr is returned for [`DNSServiceGetAddrInfo(_:_:_:_:_:_:_:)`](/documentation/dnssd/DNSServiceGetAddrInfo(_:_:_:_:_:_:_:)) and zero length rdata is returned for [`DNSServiceQueryRecord(_:_:_:_:_:_:_:_:)`](/documentation/dnssd/DNSServiceQueryRecord(_:_:_:_:_:_:_:_:)).

---

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)