Download the PHP package noglitchyo/dealdoh-client without Composer
On this page you can find all versions of the php package noglitchyo/dealdoh-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download noglitchyo/dealdoh-client
More information about noglitchyo/dealdoh-client
Files in noglitchyo/dealdoh-client
Package dealdoh-client
Short Description A DNS proxy client to make/forward DNS query via HTTP & CLI with different protocols.
License MIT
Informations about the package dealdoh-client
dealdoh-client
A toy to deal DNS over HTTPS and more!
dealdoh-client is a simple DNS client embedding a DNS-over-HTTPS (DoH) proxy server and CLI to make & forward DNS queries through a variety of upstreams.
Description
dealdoh-client can be use in different manners and for different purposes:
- as a DoH proxy server
- as a DNS client, using the provided command-line client to make DNS queries
- both can use a pool of DNS upstream which can be easily configured by running some commands
Dealdoh is built on top of the Dealdoh library.
Roadmap
- [x] Docker image
Getting started
As mentionned above, there is multiple ways to use dealdoh-client. Let's see what can be done at the time with dealdoh-client.
As a DoH proxy server
As a DNS command-line client
Requirements
- PHP 7.3
- Composer
Installation
- You can use the client by cloning the project:
git clone https://github.com/noglitchyo/dealdoh-client
composer install
- or by using as a dependency in a project:
composer require noglitchyo/dealdoh-client
Usage
Add a DNS upstream
You can use the following command to add a DNS upstream to the DNS pool:
php bin/dealdoh upstream:add https://dns.google.com/resolve google-doh-api
Execute a DNS query
To execute DNS query directly from the command-line, you can use the provided binary:
php bin/dealdoh resolve tools.ietf.org AAAA --pretty
It will output the result as JSON string: (response is truncated)
Testing
If you wish to run the test, checkout the project and run the test with:
composer test
Contributing
Get started here CONTRIBUTING.md.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
All versions of dealdoh-client with dependencies
nyholm/psr7 Version ^1.1
slim/http Version ^0.7.0
php Version ^7.3
psr/http-client Version 1.0.1
psr/log Version ^1.1
slim/slim Version 4.0.0-beta
symfony/console Version ^4.3
php-di/php-di Version ^6.0
php-http/guzzle6-adapter Version ^2.0
noglitchyo/dealdoh Version ^0.4.0