PHPackages                             danog/dns-over-https - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Queues &amp; Workers](/categories/queues)
4. /
5. danog/dns-over-https

ActiveLibrary[Queues &amp; Workers](/categories/queues)

danog/dns-over-https
====================

Async DNS-over-HTTPS resolution for Amp.

1.0.1(1y ago)11709.8k—1.4%16MITPHPPHP &gt;=8.1

Since Jun 12Pushed 1y ago1 watchersCompare

[ Source](https://github.com/danog/dns-over-https)[ Packagist](https://packagist.org/packages/danog/dns-over-https)[ Docs](https://github.com/danog/dns-over-https)[ RSS](/packages/danog-dns-over-https/feed)WikiDiscussions v1 Synced 1mo ago

READMEChangelog (6)Dependencies (12)Versions (16)Used By (6)

dns
===

[](#dns)

[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)

`danog/dns-over-https` provides asynchronous and secure DNS-over-HTTPS name resolution for [Amp](https://github.com/amphp/amp).
Supports [RFC 8484](https://tools.ietf.org/html/rfc8484) POST and GET syntaxes as well as [Google's proprietary JSON DNS format](https://developers.google.com/speed/public-dns/docs/dns-over-https).
Supports passing custom headers for [domain fronting](https://en.wikipedia.org/wiki/Domain_fronting) with google DNS.

Installation
------------

[](#installation)

```
composer require danog/dns-over-https
```

Example
-------

[](#example)

```
