DNS

1.2.0

Swift implementation of DNS Records / RR
Bouke/DNS

What's New

2020-01-10T16:47:34Z

Added

  • Support for Swift 5

DNS Record Types

A Swift implementation of DNS Record Types. Used for example in mDNS / NetService.

Build Status

Usage

// Encoding a message
let request = Message(
    type: .query,
    questions: [Question(name: "apple.com.", type: .pointer)]
)
let requestData = try request.serialize()

// Not shown here: send to DNS server over UDP, receive reply.

// Decoding a message
let responseData = Data()
let response = try Message.init(deserialize: responseData)
print(response.answers.first)

Credits

This library was written by Bouke Haarsma.

Description

  • Swift Tools 4.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Nov 11 2024 22:23:40 GMT-1000 (Hawaii-Aleutian Standard Time)