danog/libdns-json

Encoder/decoder for google's JSON DNS message format based on libdns

Maintainers

👁 danog

Package info

github.com/danog/LibDNSJson

Homepage

pkg:composer/danog/libdns-json

Statistics

Installs: 754 963

Dependents: 1

Suggesters: 0

Stars: 7

Open Issues: 0

0.2.1 2024-12-02 16:40 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT cd2981a386a32ff62d447a9553e203384651ba90

  • Daniil Gentili <daniil.woop@daniil.it>
  • Chris Wright <addr.woop@daverandom.com>

jsonmessagehttpsdnsdns-over-httpsdohlibdns

This package is auto-updated.

Last update: 2026-06-29 01:51:58 UTC


README

👁 Build Status
👁 License

Encoder/decoder for google's JSON DNS message format based on libdns.

The API consists of a QueryEncoderFactory that creates QueryEncoder objects, that can encode libdns Message objects to a query string that can be used both with google's and cloudflare's DNS-over-HTTPS APIs (for cloudflare, using directly UDP wireformat with libdns's Encoder is recommended).

The JsonDecoderFactory creates JsonDecoder objects, that accept JSON strings and decode them back to Message objects.

Installation

composer require danog/libdns-json