Swiftpack.co -  Bouke/DNS as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Swift implementation of DNS Records / RR
.package(url: "https://github.com/Bouke/DNS.git", from: "1.2.0")

DNS Record Types

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

Build Status


// 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)


This library was written by Bouke Haarsma.


Stars: 46
Last commit: 30 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

1 year ago


  • Support for Swift 5

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API