Latest 1.0.2
Homepage https://github.com/mcfedr/DNS
License MIT
Platforms ios 9.3, osx 10.10
Authors ,

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.

Latest podspec

{
    "name": "DNS",
    "version": "1.0.2",
    "summary": "A lib for parsing and serializing DNS packets.",
    "homepage": "https://github.com/mcfedr/DNS",
    "license": "MIT",
    "authors": {
        "Fred Cox": "[email protected]",
        "Bouke Haarsma": "[email protected]"
    },
    "platforms": {
        "ios": "9.3",
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/mcfedr/DNS.git",
        "tag": "1.0.2"
    },
    "source_files": "Sources/DNS/**/*.swift",
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This