Skip to content
Web DNS over HTTP (DOH) test tool
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
README.md
package-lock.json
package.json
webpack.config.js

README.md

doh-webpack

Web DNS over HTTP (DOH) in browser test tool

This sample code provides a client implementation for https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-03

This is an IETF work in progress.

You may notice that this code may not return an answer and instead end in a pre-flight 400 or 405 error. This is to be expected since we are sending a POST method with:

Content-Type: 'application/dns-udpwireformat'

See CORS for more info.

If DNS over HTTPS servers want to support arbitrary requests from a web page over HTTPS, the server will have to support OPTIONS pre-flight requests to allow the POST to be sent.

Install

npm install

Run

npm start
You can’t perform that action at this time.