1
0
mirror of https://github.com/danog/LibDNSJson.git synced 2024-11-26 11:54:47 +01:00
Go to file
2019-07-14 16:59:51 +02:00
examples Add empty examples 2019-06-12 14:39:17 +02:00
lib Parse multi-field records 2019-07-14 16:59:51 +02:00
test Parse multi-field records 2019-07-14 16:59:51 +02:00
.gitignore First commit 2019-06-12 14:31:58 +02:00
.php_cs.dist First commit 2019-06-12 14:31:58 +02:00
.travis.yml First commit 2019-06-12 14:31:58 +02:00
appveyor.yml First commit 2019-06-12 14:31:58 +02:00
composer.json First commit 2019-06-12 14:31:58 +02:00
LICENSE MIT license 2019-06-12 14:34:42 +02:00
phpunit.xml.dist First commit 2019-06-12 14:31:58 +02:00
README.md Add badges 2019-06-12 14:35:49 +02:00

LibDNSJson

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.