---
title: kCFGetAddrInfoFailureKey
framework: cfnetwork
role: symbol
role_heading: Global Variable
path: cfnetwork/kcfgetaddrinfofailurekey
---

# kCFGetAddrInfoFailureKey

## Declaration

```swift
let kCFGetAddrInfoFailureKey: CFString
```

## Discussion

Discussion If an error of type kCFHostErrorUnknown is returned, this key returns the last error code returned by getaddrinfo in response to a DNS lookup. To interpret the results, look up the error code in /usr/include/netdb.h.

## See Also

### Constants

- [kCFURLErrorFailingURLErrorKey](cfnetwork/kcfurlerrorfailingurlerrorkey.md)
- [kCFURLErrorFailingURLStringErrorKey](cfnetwork/kcfurlerrorfailingurlstringerrorkey.md)
- [kCFSOCKSStatusCodeKey](cfnetwork/kcfsocksstatuscodekey.md)
- [kCFSOCKSVersionKey](cfnetwork/kcfsocksversionkey.md)
- [kCFSOCKSNegotiationMethodKey](cfnetwork/kcfsocksnegotiationmethodkey.md)
- [kCFDNSServiceFailureKey](cfnetwork/kcfdnsservicefailurekey.md)
- [kCFFTPStatusCodeKey](cfnetwork/kcfftpstatuscodekey.md)
