---
title: kDNSServiceFlagsNoAutoRename
framework: dnssd
role: symbol
role_heading: Global Variable
path: dnssd/kdnsserviceflagsnoautorename
---

# kDNSServiceFlagsNoAutoRename

## Declaration

```swift
var kDNSServiceFlagsNoAutoRename: UInt32 { get }
```

## Discussion

Discussion Flag for specifying renaming behavior on name conflict when registering non-shared records. By default, name conflicts are automatically handled by renaming the service. NoAutoRename overrides this behavior - with this flag set, name conflicts will result in a callback. The NoAutorename flag is only valid if a name is explicitly specified when registering a service (i.e. the default name is not used.)
