Structurednsclient 2.5.0DNSClient
CNAMERecord
A canonical name record. This is used for aliasing hostnames.
struct CNAMERecordA canonical name record. This is used for aliasing hostnames.
struct CNAMERecordimport DNSClientprotocol DNSResource : SendableA protocol that can be used to read a DNS resource from a buffer.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
static func read(from buffer: inout ByteBuffer, length: Int) -> CNAMERecord? let labels: [DNSLabel]The labels of the alias.
func write(into buffer: inout ByteBuffer, labelIndices: inout [String : UInt16]) -> Int