---
title: NWTXTRecord
framework: network
role: symbol
role_heading: Structure
path: network/nwtxtrecord
---

# NWTXTRecord

A dictionary representing a TXT record in a DNS packet.

## Declaration

```swift
struct NWTXTRecord
```

## Topics

### Creating TXT Records

- [init(_:)](network/nwtxtrecord/init(_:)-566pd.md)
- [removeEntry(key:)](network/nwtxtrecord/removeentry(key:).md)
- [setEntry(_:for:)](network/nwtxtrecord/setentry(_:for:).md)
- [NWTXTRecord.Entry](network/nwtxtrecord/entry.md)

### Examining TXT Records

- [getEntry(for:)](network/nwtxtrecord/getentry(for:).md)
- [subscript(_:)](network/nwtxtrecord/subscript(_:).md)
- [dictionary](network/nwtxtrecord/dictionary.md)

### Initializers

- [init(_:)](network/nwtxtrecord/init(_:)-30jy4.md)
- [init(_:)](network/nwtxtrecord/init(_:)-69q7g.md)
- [init(_:)](network/nwtxtrecord/init(_:)-7cww7.md)

### Instance Properties

- [data](network/nwtxtrecord/data.md)
- [dataDictionary](network/nwtxtrecord/datadictionary.md)
- [entries](network/nwtxtrecord/entries.md)

## Relationships

### Conforms To

- [Collection](swift/collection.md)
- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Sequence](swift/sequence.md)

## See Also

### Evaluating Browser Results

- [endpoint](network/nwbrowser/result/endpoint.md)
- [interfaces](network/nwbrowser/result/interfaces.md)
- [metadata](network/nwbrowser/result/metadata-swift.property.md)
- [NWBrowser.Result.Metadata](network/nwbrowser/result/metadata-swift.enum.md)
